gotoSceneAndPlay(scene, frame)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
gotoSceneAndPlay(scene, frame)

Arguments
scene: The Scene name to which the playhead is sent. This can also be a Scene name synonym.
frame: The Frame number or label to which the playhead is sent.

Returns
Nothing.

Description
Action: Sends the playhead to the specified Frame in a Scene and plays from that Frame. If no Scene is specified, the playhead goes to the specified Frame in the current Scene.

Sample

onLoad() {
    gotoSceneAndPlay("Scene_2", 16);
}


See Also
Scene-based Movie Control
gotoSceneAndPlay(), gotoSceneAndStop(), nextSceneAndPlay(), nextSceneAndStop(), prevSceneAndPlay() and prevSceneAndStop().

Frame-based Movie Control
play(), stop(), gotoAndPlay(), gotoAndStop(), nextFrameAndPlay(), nextFrameAndStop(), prevFrameAndPlay(), prevFrameAndStop(), skipFrameAndPlay() and skipFrameAndStop().