XML Load methods


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. private function loadXML(path:String):void
  2. {
  3. var loader:URLLoader = new URLLoader();
  4. loader.addEventListener(Event.COMPLETE, onXMLComplete);
  5. loader.load(new URLRequest(path));
  6. }
  7.  
  8. private function onXMLComplete(e:Event):void
  9. {
  10. _xml = new XML(e.target.data);
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.