Posted By

adrianparr on 04/15/10


Tagged

external load swf movieclip loading loader as3 contentLoaderInfo


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

socialflasher
ovakimyan
weavermedia
tspitzr


AS3 Loading and Displaying an External SWF File


 / Published in: ActionScript 3
 

  1. var ldr:Loader = new Loader();
  2. ldr.load(new URLRequest("toLoad.swf"));
  3. ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded, false, 0, true);
  4. function loaded(event:Event):void {
  5. addChild(event.target.content);
  6. }

Report this snippet  

You need to login to post a comment.