Class ccs.ProcessBase

Class Summary
Constructor Attributes Constructor Name and Description
 
Base class for ccs.ProcessBase objects.

Method Summary

Class Detail

ccs.ProcessBase()
Base class for ccs.ProcessBase objects.

Method Detail

  • {number} getAnimationInternal()
    animationInternal getter
    Returns:
    {number}
  • {Number} getCurrentFrameIndex()
    get currentFrameIndex
    Returns:
    {Number}
  • {number} getCurrentPercent()
    current percent getter
    Returns:
    {number}
  • {number} getLoop()
    loop type getter
    Returns:
    {number}
  • {number} getProcessScale()
    process scale getter
    Returns:
    {number}
  • {number} getRawDuration()
    rawDuration getter
    Returns:
    {number}
  • {number} getTweenEasing()
    tween easing getter
    Returns:
    {number}
  • gotoFrame(frameIndex)
    goto frame
    Parameters:
    {Number} frameIndex
  • {boolean} isComplete()
    whether the animation is complete
    Returns:
    {boolean}
  • {boolean} isPause()
    whether the animation is pause
    Returns:
    {boolean}
  • {boolean} isPlaying()
    whether the animation is playing
    Returns:
    {boolean}
  • pause()
    Pause the Process
  • play(durationTo, tweenEasing)
    Play the Process
    Parameters:
    {Number} durationTo
    {ccs.TweenType} tweenEasing
  • resume()
    Resume the Process
  • setAnimationInternal(animationInternal)
    animationInternal setter
    Parameters:
    animationInternal
  • setProcessScale(processScale)
    process scale setter
    Parameters:
    processScale
  • stop()
    Stop the Process
  • updateHandler()
    update will call this handler, you can handle your logic here