nextFrame( ) Global Function

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
nextFrame( ) Global Function Flash 2

advance a movie or movie clip's playhead one frame and stop it
nextFrame()

Description

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.

See Also

gotoAndStop( ), MovieClip.nextFrame( ), nextScene( ), prevFrame( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net