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.
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, durationTween, loop, tweenEasing)play animation by animation name.
- Parameters:
- {Number} durationTo
- he frames between two animation changing-over.It's meaning is changing to this animation need how many frames -1 : use the value from CCMovementData get from flash design panel
- {Number} durationTween
- he frame count you want to play in the game.if _durationTween is 80, then the animation will played 80 frames in a loop -1 : use the value from CCMovementData get from flash design panel
- {Number} loop
- Whether the animation is loop. loop < 0 : use the value from CCMovementData get from flash design panel loop = 0 : this animation is not loop loop > 0 : this animation is loop
- {Number} tweenEasing
- CCTween easing is used for calculate easing effect TWEEN_EASING_MAX : use the value from CCMovementData get from flash design panel -1 : fade out 0 : line 1 : fade in 2 : fade in and out
-
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