![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 3.
The methods for the MovieClip class provide the same functionality as actions that target movie clips. There are also additional methods that do not have equivalent actions in the Actions toolbox in the Actions panel.
You do not need to use a constructor method to call the methods of the MovieClip class; instead, you reference movie clip instances by name, using the following syntax:
my_mc
.play();
my_mc
.gotoAndPlay(3);
Method |
Description |
---|---|
|
Captures and plays local audio from the microphone hardware. |
|
Attaches a SWF file in the library. |
|
Creates an empty movie clip. |
|
Creates an empty text field. |
|
Duplicates the specified movie clip. |
|
Returns the minimum and maximum x and y coordinates of a SWF file in a specified coordinate space. |
|
Returns the number of bytes loaded for the specified movie clip. |
|
Returns the size of the movie clip, in bytes. |
|
Returns the depth of a movie clip. |
|
Specifies whether a particular depth is already occupied by a movie clip. |
|
Specifies a depth value that you can pass to other methods to to ensure that Flash renders the movie clip in front of all other objects in the current movie clip. |
|
Returns an integer that indicates the Flash Player version for which the movie clip was published |
|
Returns a TextSnapshot object that contains the text in the static text fields in the specified movie clip. |
|
Retrieves a document from a URL. |
|
Converts the point object from Stage coordinates to the local coordinates of the specified movie clip. |
|
Sends the playhead to a specific frame in the movie clip and plays the SWF file. |
|
Sends the playhead to a specific frame in the movie clip and stops the SWF file. |
|
Returns |
|
Loads the specified SWF file into the movie clip. |
|
Loads variables from a URL or other location into the movie clip. |
|
Converts a point object from the local coordinates of the movie clip to the global Stage coordinates. |
|
Sends the playhead to the next frame of the movie clip. |
|
Plays the specified movie clip. |
|
Sends the playhead to the previous frame of the movie clip. |
|
Removes the movie clip from the Timeline if it was created with |
|
Specifies a movie clip as a mask for another movie clip. |
|
Specifies a movie clip as draggable and begins dragging the movie clip. |
|
Stops the currently playing SWF file. |
|
Stops the dragging of any movie clip that is being dragged. |
|
Swaps the depth level of two SWF files. |
|
Removes a SWF file that was loaded with |
Method |
Description |
---|---|
Begins drawing a fill on the Stage. |
|
Begins drawing a gradient fill on the Stage. |
|
Removes all the drawing commands associated with a movie clip instance. |
|
Draws a curve using the latest line style. |
|
Ends the fill specified by |
|
Defines the stroke of lines created with the |
|
Draws a line using the current line style. |
|
Moves the current drawing position to specified coordinates. |
Property |
Description |
---|---|
The transparency value of a movie clip instance. |
|
The frame number in which the playhead is currently located. |
|
The absolute path in slash syntax notation of the movie clip instance on which a draggable movie clip was dropped. |
|
Indicates whether a button movie clip is enabled. |
|
Enables a movie clip to receive focus. |
|
Indicates whether a focused movie clip has a yellow rectangle around it. |
|
The number of frames that have been loaded from a streaming SWF file. |
|
The height of a movie clip instance, in pixels. |
|
Designates another movie clip to serve as the hit area for a button movie clip. |
|
Sets the rendering quality of a SWF file. |
|
Associates a ContextMenu object with a movie clip. |
|
The instance name of a movie clip instance. |
|
A reference to the movie clip that encloses the movie clip. |
|
The degree of rotation of a movie clip instance. |
|
The number of seconds before a sound starts to stream. |
|
Indicates whether the children of a movie clip are included in automatic tab ordering. |
|
Indicates whether a movie clip is included in tab ordering. |
|
Indicates the tab order of an object. |
|
The target path of a movie clip instance. |
|
The total number of frames in a movie clip instance. |
|
Indicates whether other buttons can receive mouse release events. |
|
The URL of the SWF file from which a movie clip was downloaded. |
|
Determines whether the hand is displayed when a user rolls over a button movie clip. |
|
A Boolean value that determines whether a movie clip instance is hidden or visible. |
|
The width of a movie clip instance, in pixels. |
|
The x coordinate of a movie clip instance |
|
The x coordinate of the mouse pointer within a movie clip instance. |
|
The value specifying the percentage for horizontally scaling a movie clip. |
|
The y coordinate of a movie clip instance. |
|
The y coordinate of the mouse pointer within a movie clip instance. |
|
The value specifying the percentage for vertically scaling a movie clip. |
Event handler |
Description |
---|---|
Invoked when all the data is loaded into a movie clip. |
|
Invoked while the pointer is outside the button; the mouse button is pressed inside, and then rolls outside the button area. |
|
Invoked while the pointer is over the button; the mouse button has been pressed then rolled outside the button, and then rolled back over the button. |
|
Invoked continually at the frame rate of the SWF file. The actions associated with the enterFrame clip event are processed before any frame actions that are attached to the affected frames. |
|
Invoked when a key is pressed. Use the |
|
Invoked when a key is released. |
|
Invoked when focus is removed from a button. |
|
Invoked when the movie clip is instantiated and appears in the Timeline. |
|
Invoked when the left mouse button is pressed. |
|
Invoked every time the mouse is moved. |
|
Invoked when the left mouse button is released. |
|
Invoked when the mouse is pressed while the pointer is over a button. |
|
Invoked when the mouse is released while the pointer is over a button. |
|
Invoked when the mouse is released while the pointer is outside the button after the button is pressed while the pointer is inside the button. |
|
Invoked when the pointer rolls outside of a button area. |
|
Invoked when the mouse pointer rolls over a button. |
|
Invoked when a button has input focus and a key is released. |
|
Invokes in the first frame after the movie clip is removed from the Timeline. The actions associated with the Unload movie clip event are processed before any actions are attached to the affected frame. |
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |