Posted By

martin9999uk on 01/10/11


Tagged

xml as3 loadexternal


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

nyong15
kure69


Load xml


 / Published in: ActionScript 3
 

  1. var myXML:XML;
  2. var myLoader:URLLoader = new URLLoader();
  3. myLoader.load(new URLRequest("config.xml"));
  4. myLoader.addEventListener(Event.COMPLETE, processXML);
  5.  
  6. function processXML(e:Event):void {
  7.  
  8. myXML = new XML(e.target.data);
  9. trace(myXML);
  10.  
  11. }

Report this snippet  

You need to login to post a comment.