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:44 |
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:56 |
Methods
onPlay
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:71 |
onPause
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:76 |
onResume
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:81 |
onStop
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:86 |
onError
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:91 |
Parameters
errorCodestring
play
Play this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:100 |
stop
Stop this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:121 |
pause
Pause this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:136 |
resume
Resume this animation.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:148 |
step
Perform a single frame step.
| meta | description |
|---|---|
| Defined in | cocos2d/animation/playable.js:160 |