MovieClip.play()
Availability
Flash Player 5.
Usage
my_mc.play() : Void
Parameters
None.
Returns
Nothing.
Description
Method; 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. For
more information, see "Assigning a class to a movie clip symbol" in Using ActionScript in Flash.
Example
Use the following ActionScript to play the main Timeline of a SWF file. This ActionScript is for
a movie clip button called
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
:
animation_mc
animation_mc.stop();
my_btn.onRelease = function(){
animation_mc.play();
};
See also
play(), MovieClip.gotoAndPlay(),
572
Chapter 2: ActionScript Language Reference
on the main Timeline:
my_mc
on the main Timeline that plays a movie clip called
my_btn
gotoAndPlay()
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?