G-L > gotoAndStop |  |

gotoAndStop

gotoandstop, playhead

Availability

Flash 2.

Usage

    gotoAndStop(scene, frame)

Parameters

`scene` The scene name to which the playhead is sent.

`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 stops it. If no scene is specified, the playhead is sent to the frame in the current scene.

Example

When the user clicks a button that the `gotoAndStop` action is assigned to, the playhead is sent to frame 5 and the movie stops playing.

    on(release) {
    	gotoAndStop(5);
    }