Class createjs.MovieClip
Extends
.
Defined in: movie_clip.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.MovieClip(opt_mode, opt_position, opt_loop, opt_labels)
A class that associates a createjs.Timeline object with a createjs.Container
object.
|
Method Attributes | Method Name and Description |
---|---|
addLabel(label, position)
Adds a label that can be used with the gotoAndPlay() method.
|
|
addTween(tween)
Adds a tween to this clip.
|
|
Returns the name of the label on or immediately before the current position.
|
|
Returns the duration of this clip.
|
|
Returns the sorted list of the labels added to this timeline.
|
|
Returns the current position of this clip.
|
|
Returns the createjs.Timeline object associated with this object.
|
|
gotoAndPlay(value)
Moves the play offset of this clip to the specified position or label and
starts playing it.
|
|
gotoAndStop(value)
Moves the play offset of this clip to the specified position or label and
stops playing it.
|
|
play()
Starts playing this clip.
|
|
removeAllChildren(opt_destroy)
|
|
removeTween(tween)
Removes a tween from this clip.
|
|
setLabels(labels)
Sets labels for this timeline.
|
|
setPaused(value)
Pauses or plays this timeline.
|
|
stop()
Stops playing this clip.
|
|
updateTweens(time)
|
Class Detail
createjs.MovieClip(opt_mode, opt_position, opt_loop, opt_labels)
A class that associates a createjs.Timeline object with a createjs.Container
object.
- Parameters:
- {string=} opt_mode
- {number=} opt_position
- {boolean=} opt_loop
-
{Object.
=} opt_labels
Method Detail
addLabel(label, position)
Adds a label that can be used with the gotoAndPlay() method.
- Parameters:
- {string} label
- {number} position
addTween(tween)
Adds a tween to this clip.
- Parameters:
- {createjs.TweenObject} tween
{string}
getCurrentLabel()
Returns the name of the label on or immediately before the current position.
- Returns:
- {string}
{number}
getDuration()
Returns the duration of this clip.
- Returns:
- {number}
{Array.}
getLabels()
Returns the sorted list of the labels added to this timeline.
- Returns:
- {Array.
}
{number}
getPosition()
Returns the current position of this clip.
- Returns:
- {number}
getSetters()
{createjs.MovieClip.Timeline}
getTimeline()
Returns the createjs.Timeline object associated with this object.
- Returns:
- {createjs.MovieClip.Timeline}
gotoAndPlay(value)
Moves the play offset of this clip to the specified position or label and
starts playing it.
- Parameters:
- {string|number} value
gotoAndStop(value)
Moves the play offset of this clip to the specified position or label and
stops playing it.
- Parameters:
- {string|number} value
play()
Starts playing this clip.
removeAllChildren(opt_destroy)
- Parameters:
- opt_destroy
removeTween(tween)
Removes a tween from this clip.
- Parameters:
- {createjs.TweenObject} tween
setLabels(labels)
Sets labels for this timeline.
- Parameters:
-
{Object.
} labels
setPaused(value)
Pauses or plays this timeline.
- Parameters:
- {boolean} value
stop()
Stops playing this clip.
updateTweens(time)
- Parameters:
- time