gotoAndPlay()
Availability
Flash Lite 1.0.
Usage
gotoAndPlay([scene,] frame)
Operands
An optional string specifying the name of the scene to which the playhead is sent.
scene
A number representing the frame number, or a string representing the label of the
frame
frame, to which the playhead is sent.
Description
Function; sends the playhead to the specified frame in a scene and begins playing from that
frame. If no scene is specified, the playhead moves to the specified frame in the current scene.
You can use the
scene
clips or other objects in the document.
Example
In the following example, when the user clicks a button to which
the playhead moves to Frame 16 in the current scene and starts to play the SWF file:
on(keyPress "7") {
gotoAndPlay(16);
}
gotoAndStop()
Availability
Flash 1.0.
Usage
gotoAndStop([scene,] frame)
Operands
An optional string specifying the name of the scene to which the playhead is sent.
scene
A number representing the frame number, or a string representing the label of the
frame
frame, to which the playhead is sent.
parameter only on the root timeline, not within timelines for movie
is assigned,
gotoAndPlay()
gotoAndStop()
19
Need help?
Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?