Search code examples
flashactionscriptflash-cs3

Detect when I'm leaving a frame in ActionsScript 3.0?


Is there an event listener to use to detect whenever I am leaving a particular frame on my timeline?

If I am correct, Event.FRAME_EXIT only works on the newer versions of Flash. Is that correct? (I am working with CS3.)


Solution

  • Event.EXIT_FRAME is supported in Flash Player 9 and above:

    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/Event.html#EXIT_FRAME

    Edit: ... but that doesn't seem to be the whole truth, see comments below.