Accessibility
 
Home > Products > Flash > Support > ActionScript Dictionary
Flash Icon Macromedia Flash Support Center - ActionScript dictionary
gotoAndPlay

Availability
Flash 2.

Usage

 gotoAndPlay(  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 plays from that frame. If no scene is specified, the playhead goes to the specified frame in the current scene.

Example
When the user clicks a button to which the gotoAndPlay action is assigned, the playhead is sent to Frame 16 and starts to play.

on(release) {
	gotoAndPlay(16);
}

To Table of Contents Back to Previous document Forward to next document