/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private function loadXML(path:String):void { var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, onXMLComplete); loader.load(new URLRequest(path)); } private function onXMLComplete(e:Event):void { _xml = new XML(e.target.data); }