Max-Mov > MovieClip (object)

MovieClip (object)

The methods for the MovieClip object privide the same functionality as the standard actions that target movie clips. There are also additional methods that provide functionality that is not available using the standard actions listed in the Actions category of the Actions panel. You do not need to use a constructor method in order to call the methods of the MovieClip object; instead, you reference movie clip instances by name, using the following syntax:

anyMovieClip.play();
anyMovieClip.gotoAndPlay(3);

Method summary for the MovieClip object
Method Description

attachMovie

Attaches a movie in the library.

duplicateMovieClip

Duplicates the specified movie clip.

getBounds

Returns the minimum and maximum x and y coordinates of a movie in a specified coordinate space.

getBytesLoaded

Returns the number of bytes loaded for the specified movie clip.

getBytesTotal

Returns the size of the movie clip in bytes.

getURL

Retrieves a document from a URL.

globalToLocal

Converts the point object from Stage coordinates to the local coordinates of the specified movie clip.

gotoAndPlay

Sends the playhead to a specific frame in the movie clip and plays the movie.

gotoAndStop

Sends the playhead to a specific frame in the movie clip and stops the movie.

hitTest

Returns true if bounding box of the specified movie clip intersects the bounding box of the target movie clip.

loadMovie

Loads the specified movie into the movie clip.

loadVariables

Loads variables from a URL or other location into the movie clip.

localToGlobal

Converts a Point object from the local coordinates of the movie clip to the global Stage coordinates.

nextFrame

Sends the playhead to the next frame of the movie clip.

play

Plays the specified movie clip.

prevFrame

Sends the playhead to the previous frame of the movie clip.

removeMovieclip

Removes the movie clip from the Timeline if it was created with a duplicateMovieClip action or method or the attachMovie method.

startDrag

Specifies a movie clip as draggable and begins dragging the movie clip.

stop

Stops the currently playing movie.

stopDrag

Stops the dragging of any movie clip that is being dragged.

swapDepths

Swaps the depth level of specified movie with the movie at a specific depth level.

unloadMovie

Removes a movie loaded with loadMovie.