Advertisement
1134calc

a loader of *bullcrap*

Jan 3rd, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import flash.display.Loader;
  2.  
  3. var loader:Loader = new Loader();
  4. loader.load(new URLRequest(url));
  5. loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
  6.     function(e:Event):void {
  7.         while(background.numChildren > 0){
  8.             background.removeChildAt(0);
  9.         }
  10.         //will add the Loader to the display list, should be sufficient unless you need image manipulation
  11.         background.addChild(loader);
  12.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement