Posted By

RubenBristian on 01/23/11


Tagged

as3


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

kure69
pankaj9695


Module Loading


 / Published in: ActionScript 3
 

  1. //make sure it's added to stage
  2. if (stage) preInit(null) else addEventListener(Event.ADDED_TO_STAGE, preInit);
  3.  
  4. //load the default xml file
  5. this.loaderInfo.parameters.xmlPath!=null ? (new XMLLoader(this.loaderInfo.parameters.xmlPath,{onComplete:parseXML})).load() : (new XMLLoader("default.xml",{onComplete:parseXML})).load();

Report this snippet  

You need to login to post a comment.