Class ccs.ProcessBase
- Defined in: CCProcessBase.js
- Extends ccs.Class
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.ProcessBase objects.
|
Method Summary
Class Detail
ccs.ProcessBase()
Base class for ccs.ProcessBase objects.
Field Detail
{Number}
animationInterval
- The animation internal
{Boolean}
completed
- <@readonly> Indicate whether the process is done
{Number}
currentFrameIndex
- <@readonly> The current frame's index
{Number}
currentPercent
- <@readonly> The current percentage of the process
{Number}
loop
- <@readonly> The number of loop
{Boolean}
paused
- <@readonly> Indicate whether the process is paused
{Boolean}
playing
- <@readonly> Indicate whether the process is playing
{Number}
processScale
- The process scale
{Number}
rawDuration
- <@readonly> The duration
{Number}
tweenEasing
- <@readonly> The tween easing
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