| Package | net.flashpunk.tweens.misc |
| Class | public class NumTween |
| Inheritance | NumTween Tween Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean
If the tween should update. | Tween | |
![]() | complete : Function
Tween completion callback. | Tween | |
![]() | delay : Number = 0
Length of time to wait before starting this tween. | Tween | |
![]() | percent : Number
The completion percentage of the Tween. | Tween | |
![]() | scale : Number [read-only]
The current time scale of the Tween (after easer has been applied). | Tween | |
| value : Number = 0
The current value. | NumTween | ||
| Method | Defined By | ||
|---|---|---|---|
NumTween(complete:Function = null, type:uint = 0)
Constructor. | NumTween | ||
![]() | 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(fromValue:Number, toValue:Number, duration:Number, ease:Function = null):void
Tweens the value from one value to another. | NumTween | ||
![]() | update():void
Updates the Tween, called by World. | Tween | |
| value | property |
public var value:Number = 0The current value.
| NumTween | () | Constructor |
public function NumTween(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(fromValue:Number, toValue:Number, duration:Number, ease:Function = null):voidTweens the value from one value to another.
Parameters
fromValue:Number — Start value.
| |
toValue:Number — End value.
| |
duration:Number — Duration of the tween.
| |
ease:Function (default = null) — Optional easer function.
|