Package | net.flashpunk.tweens.misc |
Class | public class VarTween |
Inheritance | VarTween Tween Object |
Method | Defined By | ||
---|---|---|---|
VarTween(complete:Function = null, type:uint = 0)
Constructor. | VarTween | ||
cancel():void
Immediately stops the Tween and removes it from its Tweener without calling the complete callback. | Tween | ||
start():void
Starts the Tween, or restarts it if it's currently running. | Tween | ||
tween(object:Object, property:String, to:Number, duration:Number, ease:Function = null):void
Tweens a numeric public property. | VarTween | ||
update():void
Updates the Tween, called by World. | Tween |
VarTween | () | Constructor |
public function VarTween(complete:Function = null, type:uint = 0)
Constructor.
Parameterscomplete:Function (default = null ) — Optional completion callback.
| |
type:uint (default = 0 ) — Tween type.
|
tween | () | method |
public function tween(object:Object, property:String, to:Number, duration:Number, ease:Function = null):void
Tweens a numeric public property.
Parameters
object:Object — The object containing the property.
| |
property:String — The name of the property (eg. "x").
| |
to:Number — Value to tween to.
| |
duration:Number — Duration of the tween.
| |
ease:Function (default = null ) — Optional easer function.
|