This content has been marked as final. Show 5 replies
Interesting question. I don't know to be honest, but I don't think that the flash object finds out when it's unloaded.
Internaly there has to be something like that, because localShared objects are automaticaly flushed at that moment (it's said not to rely on that but I can't remember a case when it wouldn't work as advertised)
As the swf is gone anyway, the usefullness would be limeded to storing info (I'm probably missing something though) and perhaps the functinality of the LSO is something that can help you?
I have tried to use _root.onUnload and that didn't seem to do it. I was reading the help this morning and this is what is said about the MovieClip.onUnload "Event handler; invoked in the first frame after the movie clip is removed from the Timeline". If it's invoked the first frame after the movie clip is removed then this event must only be for MovieClips that are added to the main timeline, because if the _root is removed then there will be no next frame...Right?
Yes, of course. The unload event inside Flash doesn't do the trick.
I've played around a bit, too. Here's an excerpt from my test.
Your Flash movie then has some time to do whatever it needs to do to say goodbye...