yes, the unloading problem hit me a while back when I was working on my youtube interface. I would load the youtube file into the application but then when I would remove it, the sound would continue playing. since then its been discussed over and over. Anyway I ended up just opening another window so that the flash would definitley unload.
http://www.ichatbar.com/icbhome/youtube/youtube.html On 12 Mar 2007 12:56:04 -0700, Alex Harui <[EMAIL PROTECTED]> wrote:
If you load a SWF into SWFLoader, you have to figure out what might have grabbed it, or what it grabbed. If you took the SWFLoader.contentand re-parented it, you have to removeChild it from wherever you parented it. If you stored it in a variable, you have to null out that variable. Conversely, if the SWF that got loaded has code that listens to events from its parents or singleton managers, or registers its managers with SingletonManager you have to find a way to break those links before the SWF will unload. There is a known issue with TabNavigator/ViewStack when using HistoryManager. There's no one place to look, so you have to keep searching sometimes. Note that the SWF does not necessarily immediately unload when the last link is broken. It will wait until Garbage Collection. -Alex ------------------------------ *From:* [email protected] [mailto:flexcompone [EMAIL PROTECTED] *On Behalf Of *dmiramontesval *Sent:* Monday, March 12, 2007 12:46 PM *To:* [email protected] *Subject:* [flexcomponents] Unloading swf I am using the SWFLoader component to load and unload other swfs within my application, the thing is that sometimes the swf that is supposedly unloaded it isn't actually being unload. Alex Harui mentioned me at 360Flex that it is possible to manually cut all the references of the swf that is going to be unloaded so it unloads properly. The thing i just can't remember which event he mentioned i could try to use to do this :P So Alex if you read this, can you please refresh my mind? Thanks Diego
-- Dominick Accattato, CTO Infrared5 Inc. www.newviewnetworks.com
