//加载外面的test.xml文件
var req:URLRequest=new URLRequest("test.xml");
var loa:URLLoader=new URLLoader(req); loa.addEventListener(Event.COMPLETE,handler); function handler(evt:Event):void{ var xml:XML=new XML(loa.data); trace(xml); } 原文链接:https://www.f2er.com/xml/300348.html