RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread Lord, Susan, CTR, DSS
Thanks Paul, I rewrote the code, so its easier to read: var request:URLRequest = new URLRequest(hotword.swf); var loader:Loader = new Loader() function displayHotword(evt:Event):void { loader.load(request); addChild(loader); loader.x = 100; loader.y = 150 }

Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
I think you want to listen for the event of the loader being loaded then use .content for it. loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk ); function iAmLoaded_Drunk( e:Event ):void { var lo:Loader = e.target as Loader; lo.content.alpha = 20; // what you actually

Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
hehe oops - .alpha = 0.2; On Tue, Sep 2, 2008 at 1:11 PM, eric e. dolecki [EMAIL PROTECTED] wrote: I think you want to listen for the event of the loader being loaded then use .content for it. loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk ); function iAmLoaded_Drunk( e:Event