Class Index | File Index

Classes


Class cc.ProgressTo


Extends cc.ActionInterval.

Defined in: CCActionProgressTimer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Progress to percentage
Method Summary
Method Attributes Method Name and Description
 
<static>  
cc.ProgressTo.create(duration, percent)
Creates and initializes with a duration and a percent
 
initWithDuration(duration, percent)
Initializes with a duration and a percent
 
 
update(time)
Methods borrowed from class cc.ActionInterval:
getAmplitudeRate, getElapsed, isDone, reverse, 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
Class Detail
cc.ProgressTo()
Progress to percentage
Method Detail
copyWithZone(zone)
Parameters:
zone
Deprecated:
It is not needed anymore.

<static> {cc.ProgressTo} cc.ProgressTo.create(duration, percent)
Creates and initializes with a duration and a percent
// example
var to = cc.ProgressTo.create(2, 100);
Parameters:
{Number} duration
duration in seconds
{Number} percent
Returns:
{cc.ProgressTo}

{Boolean} initWithDuration(duration, percent)
Initializes with a duration and a percent
Parameters:
{Number} duration
duration in seconds
{Number} percent
Returns:
{Boolean}

startWithTarget(target)
Parameters:
{cc.Node} target

update(time)
Parameters:
{Number} time
time in seconds

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:53 GMT-0800 (PST)