Playable Class
Module: cc
Index
Properties
isPlayingBooleanIs playing or paused in play mode?isPausedBooleanIs currently paused? This can be true even if in edit mode(isPlaying == false).
Methods
onPlayonPauseonResumeonStoponErrorplayPlay this animation.stopStop this animation.pausePause this animation.resumeResume this animation.stepPerform a single frame step.
Details
Properties
isPlaying
Is playing or paused in play mode?
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/animation/playable.js:43 |
isPaused
Is currently paused? This can be true even if in edit mode(isPlaying == false).
| meta | description |
|---|---|
| Type | Boolean |
| Defined in | cocos2d/animation/playable.js:55 |
Methods
onPlay
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:70 |
onPause
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:75 |
onResume
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:80 |
onStop
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:85 |
onError
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:90 |
Parameters
errorCodestring
play
Play this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:99 |
stop
Stop this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:120 |
pause
Pause this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:135 |
resume
Resume this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:147 |
step
Perform a single frame step.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:159 |