gotoAndPlay( ) Global Function — move the playhead to a given frame, then play the current clip or movie
Flash 2 and later
gotoAndPlay(frameNumber) gotoAndPlay(frameLabel) gotoAndPlay(scene, frameNumber) gotoAndPlay(scene, frameLabel)
A positive integer indicating the number of the frame to which the playhead of the current timeline should proceed before playing. If
frameNumberis less than 1 or greater than the number of frames in the timeline, the playhead is sent to either the first or last frame, respectively.
A string indicating the label of the frame to which the playhead of the current timeline should proceed before playing. If
frameLabelis not found, the playhead is sent to the first frame of the timeline.
An optional string indicating the name of the scene that contains the specified
frameLabel. If not supplied, the current scene is assumed.
When invoked without a
gotoAndPlay( ) sends the playhead of the current
timeline to the frame specified by either the
frameLabel and then plays the timeline
from that point. The “current timeline” is the movie clip
or movie from which the
gotoAndPlay( ) function
If two arguments are specified in the
) function call, the first argument is assumed to be the
scene. If only one argument is specified,
it is treated as a
frameLabel, and the current scene is
When invoked with a