Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import flash.display.Loader;
- var loader:Loader = new Loader();
- loader.load(new URLRequest(url));
- loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
- function(e:Event):void {
- while(background.numChildren > 0){
- background.removeChildAt(0);
- }
- //will add the Loader to the display list, should be sufficient unless you need image manipulation
- background.addChild(loader);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement