User Guide
688 Chapter 2: ActionScript Language Reference
play()
Availability
Flash 2.
Usage
play() : Void
Parameters
None.
Returns
Nothing.
Description
Function; moves the playhead forward in the Timeline.
Example
In the following example, there are two movie clip instances on the Stage with the instance names
stop_mc and play_mc. The ActionScript stops the SWF file’s playback when the stop_mc movie
clip instance is clicked. Playback resumes when the
play_mc instance is clicked.
this.stop_mc.onRelease = function() {
stop();
};
this.play_mc.onRelease = function() {
play();
};
trace("frame 1");
See also
gotoAndPlay(), MovieClip.gotoAndPlay()
CHAPTER 2
ActionScript Language Reference