Play (Movieclip.play Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

You can use
_parent
this._parent._parent._alpha = 20;
Availability: ActionScript 1.0; Flash Lite 2.0
Example
The following example traces the reference to a movie clip and its relationship to the main
Timeline. Create a movie clip with the instance name
Add the following ActionScript to your FLA or AS file:
my_mc.onRelease = function() {
trace("You clicked the movie clip: "+this);
trace("The parent of "+this._name+" is: "+this._parent);
}
When you click the movie clip, the following information appears in the Output panel:
You clicked the movie clip: _level0.my_mc
The parent of my_mc is: _level0
See also
_parent (Button._parent property)
_parent (TextField._parent property)

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 Lite 2.0
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();
};
506
ActionScript classes
to move up multiple levels in the display list as in the following:
,
_root property
on the main Timeline:
my_mc
, and add it to the main Timeline.
my_mc
,
targetPath function
,

Advertisement

Table of Contents
loading

Table of Contents