User Guide
MovieClip 817
MovieClip
Object
|
+-MovieClip
public dynamic class MovieClip
extends Object
The methods for the MovieClip class provide the same functionality as actions that target
movie clips. Some additional methods do not have equivalent actions in the Actions toolbox
in the Actions panel.
You do not use a constructor method to create a movie clip. You can choose from among three
methods to create movie clip instances:
■ The attachMovie() method allows you to create a movie clip instance based on a movie
clip symbol that exists in the library.
■ The createEmptyMovieClip() method allows you to create an empty movie clip
instance as a child based on another movie clip.
■ The duplicateMovieClip() method allows you to create a movie clip instance based on
another movie clip.
To call the methods of the MovieClip class you reference movie clip instances by name, using
the following syntax, where
my_mc is a movie clip instance:
my_mc.play();
my_mc.gotoAndPlay(3);
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability: ActionScript 1.0; Flash Player 3
Property summary
Modifiers Property Description
_alpha:Number The alpha transparency value of the movie clip.
blendMode:Object The blend mode for this movie clip.
cacheAsBitmap:Boolean If set to true, Flash Player caches an internal bitmap
representation of the movie clip.
_currentframe:Number
[read-only]
Returns the number of the frame in which the
playhead is located in the movie clip's timeline.
_droptarget:String
[read-only]
Returns the absolute path in slash-syntax notation of
the movie clip instance on which this movie clip was
dropped.