//加载外面的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); }
//加载外面的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); }