Playable 类型
模块: cc
索引
属性(properties)
方法
onPlayonPauseonResumeonStoponErrorplay播放动画。stop停止动画播放。pause暂停动画。resume重新播放动画。step执行一帧动画。
Details
属性(properties)
isPlaying
当前是否正在播放。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/animation/playable.js:44 |
isPaused
当前是否正在暂停
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | cocos2d/animation/playable.js:56 |
方法
onPlay
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:71 |
onPause
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:76 |
onResume
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:81 |
onStop
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:86 |
onError
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:91 |
参数列表
errorCodestring
play
播放动画。
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:100 |
stop
停止动画播放。
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:121 |
pause
暂停动画。
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:136 |
resume
重新播放动画。
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:148 |
step
执行一帧动画。
| meta | description |
|---|---|
| 定义于 | cocos2d/animation/playable.js:160 |