Posted By

klunkatronic on 12/12/08


Tagged

textmate as3


Versions (?)

XML Load methods


 / Published in: Other
 

  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  

You need to login to post a comment.