Event REMOVED_FROM_STAGE

Posted in Flash by Flash CS3 and Flash CS4 tutorials on the 01-15-2010

We saw the importance of the event ADDED_TO_STAGE and when to use it.
The same goes for the event REMOVED_FROM_STAGE of Actionscript 3.0, which is used for example when a SWF is loaded, when we unload it we need to perform perform actions (such as stop ENTER_FRAME or stop a sound, a timer, free the memory, erase arrays etc etc … ).

Take an example.
I have main.swf that loads external.swf.
In external.swf I added both of listeners for the events ADDED_TO_STAGE and REMOVED_FROM_STAGE.

Read more…

Tags: , , ,

Related posts


Read full article

  1. Responses to “Event REMOVED_FROM_STAGE”

Post a Comment

captcha