Name

nextScene( ) Global Function — advance a movie’s playhead to frame 1 of the next scene

Availability

Flash 2 and later

Synopsis

nextScene( )

Description

The nextScene( ) function moves the main playhead of a movie to frame 1 of the scene following the current scene and stops the main movie timeline. The “current scene” is the scene from which the nextScene( ) function is invoked. It must be invoked on a scene’s main timeline in order to have an effect; that is, nextScene( ) does not work inside a movie clip or onClipEvent( ) handler. If invoked from the last scene in a movie, nextScene( ) sends the playhead to frame 1 of that scene and halts movie playback.

See Also

nextFrame( ), prevScene( )

Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.