ActionScript 2.0 Language Reference |
|
|
|
| ActionScript classes > MovieClip > play (MovieClip.play method) | |||
public play() : Void
Moves the playhead in the timeline of the movie clip.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 5
Use the following ActionScript to play the main timeline of a SWF file. This ActionScript is for a movie clip button called my_mc on the main Timeline:
stop();
my_mc.onRelease = function() {
this._parent.play();
};
Use the following ActionScript to play the timeline of a movie clip in a SWF file. This ActionScript is for a button called my_btn on the main Timeline that plays a movie clip called animation_mc:
animation_mc.stop();
my_btn.onRelease = function(){
animation_mc.play();
};
play function, gotoAndPlay (MovieClip.gotoAndPlay method), gotoAndPlay function
|
|
|
|