The SWFLoader unloads the SWF which just de-references the SWF bytes but does 
not clear references to objects created by code in that SWF which might be 
referenced by the player or other code, including Timers, Video, Audio, player 
events, etc.

In FP10, there is a new unloadAndStop method that will supposedly clear this 
stuff out, but short of that, the child SWF should listen for an UNLOAD event 
and stop Audio and do other cleanup.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Tuesday, September 09, 2008 4:48 PM
To: [email protected]
Subject: Re: [flexcoders] SWFLoader unloading, whats the trick?

IIRC, any loaded SWF that's no longer referenced will be garbage collected (and 
fairly quickly from my experience), but streaming audio (or video) is still 
referenced by the player so it doesn't go anywhere.

-Josh
On Wed, Sep 10, 2008 at 9:40 AM, djepyon <[EMAIL PROTECTED]<mailto:[EMAIL 
PROTECTED]>> wrote:
Does SWFLoader unload itself when you set a new source path? Then why
does timeline audio thats set to "stream" in the swf still continue to
play? Can give me the skinny on properly unloading a SWFLoader? Thx.


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





--
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

Reply via email to