public class Main extends Sprite { private var loader:Loader;
public function Main( ) { loader = new Loader( ); loader.contentLoaderInfo.addEventListener(Event.INIT, initListener); loader.load(new URLRequest("Module.swf")); }
private function initListener (e:Event):void { loader.content.addEventListener("ASSETS_READY", assetsReadyListener); }
private function assetsReadyListener (e:Event):void { trace(Object(loader.content).t.text); } } }
Related Scripts with Example Source Code in same category :