Packagenet.flashpunk.tweens.misc
Classpublic class MultiVarTween
InheritanceMultiVarTween Inheritance Tween Inheritance Object

Tweens multiple numeric public properties of an Object simultaneously.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
If the tween should update.
Tween
 Inheritedcomplete : Function
Tween completion callback.
Tween
 Inheriteddelay : Number = 0
Length of time to wait before starting this tween.
Tween
 Inheritedpercent : Number
The completion percentage of the Tween.
Tween
 Inheritedscale : Number
[read-only] The current time scale of the Tween (after easer has been applied).
Tween
Public Methods
 MethodDefined By
  
MultiVarTween(complete:Function = null, type:uint = 0)
Constructor.
MultiVarTween
 Inherited
cancel():void
Immediately stops the Tween and removes it from its Tweener without calling the complete callback.
Tween
 Inherited
start():void
Starts the Tween, or restarts it if it's currently running.
Tween
  
tween(object:Object, values:Object, duration:Number, ease:Function = null, delay:Number = 0):void
Tweens multiple numeric public properties.
MultiVarTween
 Inherited
update():void
Updates the Tween, called by World.
Tween
Public Constants
 ConstantDefined By
 InheritedLOOPING : uint = 1
[static] Looping Tween type, will restart immediately when it finishes.
Tween
 InheritedONESHOT : uint = 2
[static] Oneshot Tween type, will stop and remove itself from its core container when it finishes.
Tween
 InheritedPERSIST : uint = 0
[static] Persistent Tween type, will stop when it finishes.
Tween
Constructor Detail
MultiVarTween()Constructor
public function MultiVarTween(complete:Function = null, type:uint = 0)

Constructor.

Parameters
complete:Function (default = null) — Optional completion callback.
 
type:uint (default = 0) — Tween type.
Method Detail
tween()method
public function tween(object:Object, values:Object, duration:Number, ease:Function = null, delay:Number = 0):void

Tweens multiple numeric public properties.

Parameters

object:Object — The object containing the properties.
 
values:Object — An object containing key/value pairs of properties and target values.
 
duration:Number — Duration of the tween.
 
ease:Function (default = null) — Optional easer function.
 
delay:Number (default = 0)