PDA

View Full Version : Is there an Event that triggers when a MovieClip leaves the stage?


soggybag
12-20-2007, 06:07 PM
Is there an event or can you create a listener for when a movie clip or other object leaves the stage?

The problem I have is with Components or classes that are used within a movie that uses the timeline. Say you have a class that appears at a frame on the timeline and the timeline is sent another frame. It is useful to have classes /components clean up after themselves. An event for this would make the job easy.

creynders
12-21-2007, 08:51 AM
removedFromStage.
listen for Event.REMOVED_FROM_STAGE