Groups | Blog | Home
all groups > flash actionscript > june 2006 >

flash actionscript : onLeaveFrame



Jim Esteban
6/19/2006 11:10:23 PM
Peter Blumenthal
6/20/2006 12:00:00 AM
If however you are seeking an event similar to Director's endSprite, you can
use the onUnload event of the MovieClip Class
--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------

NSurveyor
6/20/2006 12:57:24 AM
onEnterFrame was poorly named. That event occurs constantly at the rate of the
FPS. There is no onExitFrame. There really is nothing between one frame, going
into another. The code is execute either on one frame, or the other. Why not
just have the code you want after your gotoAndPlay/Stop action?
Jim Esteban
6/20/2006 6:12:41 PM
Well I have several different screens on the same timeline. It would have been
helpful to be able to reset some variables which are available to all of these
screens upon leaving a certain screen. As it stands now I have to be cautious
about resetting that variable in each event which could cause the program to
leave that screen. An onExitFrame would have been helpful but not essential I
guess.
AddThis Social Bookmark Button