• Playable 类型
    • 索引
      • 属性(properties)
      • 方法
  • Details
    • 属性(properties)
      • isPlaying
      • isPaused
      • onPause
      • onResume
      • onStop
      • onError
        • 参数列表
      • play
      • stop
      • pause
      • resume
      • step

    Playable 类型

    模块: cc

    索引

    属性(properties)
    • isPlaying Boolean 当前是否正在播放。
    • isPaused Boolean 当前是否正在暂停
    方法
    • onPlay
    • onPause
    • onResume
    • onStop
    • onError
    • play 播放动画。
    • stop 停止动画播放。
    • pause 暂停动画。
    • resume 重新播放动画。
    • step 执行一帧动画。

    Details

    属性(properties)

    isPlaying
    当前是否正在播放。
    metadescription
    类型Boolean
    定义于cocos2d/animation/playable.js:44
    isPaused
    当前是否正在暂停
    metadescription
    类型Boolean
    定义于cocos2d/animation/playable.js:56



    #### 方法



    ##### onPlay


    metadescription
    定义于cocos2d/animation/playable.js:71
    onPause
    metadescription
    定义于cocos2d/animation/playable.js:76
    onResume
    metadescription
    定义于cocos2d/animation/playable.js:81
    onStop
    metadescription
    定义于cocos2d/animation/playable.js:86
    onError
    metadescription
    定义于cocos2d/animation/playable.js:91
    参数列表
    • errorCode string
    play

    播放动画。

    metadescription
    定义于cocos2d/animation/playable.js:100
    stop

    停止动画播放。

    metadescription
    定义于cocos2d/animation/playable.js:121
    pause

    暂停动画。

    metadescription
    定义于cocos2d/animation/playable.js:136
    resume

    重新播放动画。

    metadescription
    定义于cocos2d/animation/playable.js:148
    step

    执行一帧动画。

    metadescription
    定义于cocos2d/animation/playable.js:160