loader.addEventListener(Event.COMPLETE, addToStage); function addToStage(e:Event) { addChild(loader); }