prevScene( ) Global Function

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

send a movie's playhead to frame 1 of the previous scene
prevScene()

Description

The prevScene( ) function moves the main playhead of a movie to frame 1 of the scene before the current scene and stops the main movie timeline. The current scene is the scene from which the prevScene( ) function is invoked. It must be invoked on a scene's main timeline in order to have an effect; that is, prevScene( ) has no effect inside a movie clip or onClipEvent( ) handler. If invoked from the first scene in a movie, prevScene( ) sends the playhead to frame 1 of that scene and halts movie playback there.

I recommend against using scenes when working with ActionScript-intensive movies. Unlike movie clips, scenes are not represented by objects and cannot be manipulated directly by most built-in functions. Normally, it's better to use labels and movie clips as pseudo-scenes in your timeline instead of using Flash's scene feature.

See Also

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