Class Index | File Index

Classes


Class cc.ScaleBy


Extends cc.ScaleTo.

Defined in: CCActionInterval.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Scales a cc.Node object a zoom factor by modifying it's scale attribute.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.ScaleBy.create(duration, sx, sy)
 
 
Methods borrowed from class cc.ScaleTo:
initWithDuration, update
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, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
Class Detail
cc.ScaleBy()
Scales a cc.Node object a zoom factor by modifying it's scale attribute.
Method Detail
<static> {cc.ScaleBy} cc.ScaleBy.create(duration, sx, sy)
// example without sy, it scales by 2 both in X and Y
var actionBy = cc.ScaleBy.create(2, 2);

//example with sy, it scales by 0.25 in X and 4.5 in Y
var actionBy2 = cc.ScaleBy.create(2, 0.25, 4.5);
Parameters:
{Number} duration
duration in seconds
{Number} sx
sx scale parameter in X
{Number|Null} sy
sy scale parameter in Y, if Null equal to sx
Returns:
{cc.ScaleBy}

{cc.ActionInterval} reverse()
Returns:
{cc.ActionInterval}

startWithTarget(target)
Parameters:
{Number} target

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