Class cc.ProgressFromTo
Extends
cc.ActionInterval.
Defined in: CCActionProgressTimer.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Progress from a percentage to another percentage
|
Method Attributes | Method Name and Description |
---|---|
copyWithZone(zone)
|
|
<static> |
cc.ProgressFromTo.create(duration, fromPercentage, toPercentage)
Creates and initializes the action with a duration, a "from" percentage and a "to" percentage
|
initWithDuration(duration, fromPercentage, toPercentage)
Initializes the action with a duration, a "from" percentage and a "to" percentage
|
|
reverse()
|
|
startWithTarget(target)
|
|
update(time)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
Method Detail
copyWithZone(zone)
- Parameters:
- zone
- Deprecated:
- It is not needed anymore.
<static>
{cc.ProgressFromTo}
cc.ProgressFromTo.create(duration, fromPercentage, toPercentage)
Creates and initializes the action with a duration, a "from" percentage and a "to" percentage
// example var fromTO = cc.ProgressFromTo.create(2, 100.0, 0.0);
- Parameters:
- {Number} duration
- duration in seconds
- {Number} fromPercentage
- {Number} toPercentage
- Returns:
- {cc.ProgressFromTo}
{Boolean}
initWithDuration(duration, fromPercentage, toPercentage)
Initializes the action with a duration, a "from" percentage and a "to" percentage
- Parameters:
- {Number} duration
- duration in seconds
- {Number} fromPercentage
- {Number} toPercentage
- Returns:
- {Boolean}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
startWithTarget(target)
- Parameters:
- {cc.Node} target
update(time)
- Parameters:
- {Number} time
- time in seconds