User Guide
MovieClip 439
stopDrawing_button.enabled = true;
};
startDrawing_button.addEventListener("click", startDrawingListener);
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 new movie clip. You can choose from among
three methods to create new movie clip instances:
■ The attachMovie() method allows you to create a new movie clip instance based on a
movie clip symbol that exists in the library.
■ The createEmptyMovieClip() method allows you to create a new, 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 Lite 2.0