加载外部文件
摘要:
//加载XMLvar myXML:XML = new XML();var XML_URL:String = "xx.xml";var myXMLURL:URLRequest = new URLRequest(XML_URL);var myLoader:URLLoader = new URLLoader(myXMLURL);myLoader.addEventListener(Event.COMPLETE, xmlLoaded);function xmlLoaded(evtObj:Event){ myXML = XML(myLoader.data); trace("数 阅读全文