nextFrame( ) Global Function | Flash 2 |
advance a movie or movie clip's playhead one frame and stop it |
The nextFrame( ) function moves the playhead of the current timeline ahead one frame and stops it there. The current timeline is the timeline from which the nextFrame( ) function is invoked. The nextFrame( ) function is synonymous with gotoAndStop(_currentFrame + 1);. If it is invoked on the last frame of a timeline, nextFrame( ) simply stops the playhead on that frame, unless another scene follows the current scene, in which case nextFrame( ) moves the playhead to frame 1 of the next scene.
gotoAndStop( ), MovieClip.nextFrame( ), nextScene( ), prevFrame( )