3 Replies Latest reply on Jun 20, 2006 11:12 AM by Jim_Esteban


    Jim_Esteban Level 1
      There is an event for onEnterFrame. Is there an event for onExitFrame or onLeaveFrame or event on gotoanotherFrame?
        • 1. Re: onLeaveFrame
          NSurveyor Level 2
          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?
          • 2. Re: onLeaveFrame
            Level 7
            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

            • 3. Re: onLeaveFrame
              Jim_Esteban Level 1
              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.