Playable
Class
Module: cc
Index
Properties
isPlaying
Boolean
Is playing or paused in play mode?isPaused
Boolean
Is currently paused? This can be true even if in edit mode(isPlaying == false).
Methods
onPlay
onPause
onResume
onStop
onError
play
Play this animation.stop
Stop this animation.pause
Pause this animation.resume
Resume this animation.step
Perform a single frame step.
Details
Properties
isPlaying
Is playing or paused in play mode?
meta | description |
---|---|
Type | Boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:18 |
isPaused
Is currently paused? This can be true even if in edit mode(isPlaying == false).
meta | description |
---|---|
Type | Boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:30 |
Methods
onPlay
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:45 |
onPause
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:50 |
onResume
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:55 |
onStop
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:60 |
onError
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:65 |
Parameters
errorCode
string
play
Play this animation.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:74 |
stop
Stop this animation.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:95 |
pause
Pause this animation.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:110 |
resume
Resume this animation.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:122 |
step
Perform a single frame step.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:134 |