Class MovieClip
Extends
Sprite.
The MovieClip class inherits from Sprite, but unlike Sprite, a MovieClip object has frames.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructor.
|
Field Attributes | Field Name and Description |
---|---|
Specifies the number of the frame in which the playhead is located in the frames sequence.
|
- Fields borrowed from class DisplayObjectContainer:
- children, mouseChildren
- Fields borrowed from class DisplayObject:
- alpha, height, id, mouseEnabled, name, parent, regX, regY, rotation, scaleX, scaleY, stage, useHandCursor, visible, width, x, y
Method Attributes | Method Name and Description |
---|---|
addFrame(data)
Appends a frame data to the frame sequence.
|
|
addFrameAt(data, frameNumber)
Adds a frame data to the specified index position.
|
|
getFrame(frameNumberOrLabel)
Gets the specified frame.
|
|
getFrameNumber(frameNumberOrLabel)
Gets the specified frame number.
|
|
Returns the total number of frames.
|
|
gotoAndPlay(frameNumberOrLabel)
Starts playing the MovieClip at the specified frame.
|
|
gotoAndStop(frameNumberOrLabel)
Moves the playhead to the specified frame and stops it there.
|
|
Moves the playhead to next frame.
|
|
play()
Moves the playhead in the movie clip.
|
|
removeFrame(frameNumberOrLabel)
Removes the specified frame.
|
|
stop()
Stops the playhead in the movie clip.
|
- Methods borrowed from class DisplayObjectContainer:
- addChild, addChildAt, contains, getChildAt, getChildByName, getChildIndex, getNumChildren, getObjectUnderPoint, removeAllChildren, removeChild, removeChildAt, removeChildByName, setChildIndex
- Methods borrowed from class DisplayObject:
- getCurrentHeight, getCurrentWidth, getRect, getStage, globalToLocal, hitTestObject, hitTestPoint, localToGlobal, localToTarget, onMouseEvent, render, toString
- Methods borrowed from class EventDispatcher:
- addEventListener, dispatchEvent, hasEventListener, removeAllEventListeners, removeEventListener, removeEventListenerByType
Field Detail
currentFrame
Specifies the number of the frame in which the playhead is located in the frames sequence.
Method Detail
addFrame(data)
Appends a frame data to the frame sequence.
- Parameters:
- data
addFrameAt(data, frameNumber)
Adds a frame data to the specified index position.
- Parameters:
- data
- frameNumber
getFrame(frameNumberOrLabel)
Gets the specified frame.
- Parameters:
- frameNumberOrLabel
getFrameNumber(frameNumberOrLabel)
Gets the specified frame number.
- Parameters:
- frameNumberOrLabel
getTotalFrames()
Returns the total number of frames.
gotoAndPlay(frameNumberOrLabel)
Starts playing the MovieClip at the specified frame.
- Parameters:
- frameNumberOrLabel
gotoAndStop(frameNumberOrLabel)
Moves the playhead to the specified frame and stops it there.
- Parameters:
- frameNumberOrLabel
nextFrame()
Moves the playhead to next frame.
play()
Moves the playhead in the movie clip.
removeFrame(frameNumberOrLabel)
Removes the specified frame.
- Parameters:
- frameNumberOrLabel
stop()
Stops the playhead in the movie clip.