In
loader.contentLoaderInfo.addEventListener(Event.CO MPLETE, completeHandler);
CO MPLETE is actually COMPLETE right? Yeah I think it is.
Just tested it, works perfectly for AS1 and AS2, but for AS3, it just loads the movie and nothing outputs to the text. ASMV1 or whatever comes for AS2 and 1, but for AS3, nothing. But the movie loads though. Any problems here? This is the code I'm using:
Code:stop(); loadbtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { var request:URLRequest = new URLRequest(movietoload.text); var loader:Loader = new Loader(); loader.load(request); addChild(loader); loadermc.addChild(loader); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); function completeHandler(event:Event):void { outputtext.text=event.currentTarget.content; } };




Reply With Quote