Playable 类型
模块: cc
索引
属性(properties)
方法
onPlayonPauseonResumeonStoponErrorplay播放动画。stop停止动画播放。pause暂停动画。resume重新播放动画。step执行一帧动画。
Details
属性(properties)
isPlaying
当前是否正在播放。
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:18 |
isPaused
当前是否正在暂停
| meta | description |
|---|---|
| 类型 | Boolean |
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:30 |
方法
onPlay
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:45 |
onPause
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:50 |
onResume
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:55 |
onStop
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:60 |
onError
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:65 |
参数列表
errorCodestring
play
播放动画。
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:74 |
stop
停止动画播放。
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:95 |
pause
暂停动画。
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:110 |
resume
重新播放动画。
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:122 |
step
执行一帧动画。
| meta | description |
|---|---|
| 定义于 | https:/github.com/cocos-creator/engine/blob/master/cocos2d/animation/playable.js:134 |