Packagenet.flashpunk.tweens.misc
Classpublic class AngleTween
InheritanceAngleTween Inheritance Tween Inheritance Object

Tweens from one angle to another.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
If the tween should update.
Tween
  angle : Number = 0
The current value.
AngleTween
 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
  
AngleTween(complete:Function = null, type:uint = 0)
Constructor.
AngleTween
 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(fromAngle:Number, toAngle:Number, duration:Number, ease:Function = null):void
Tweens the value from one angle to another.
AngleTween
 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
Property Detail
angleproperty
public var angle:Number = 0

The current value.

Constructor Detail
AngleTween()Constructor
public function AngleTween(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(fromAngle:Number, toAngle:Number, duration:Number, ease:Function = null):void

Tweens the value from one angle to another.

Parameters

fromAngle:Number — Start angle.
 
toAngle:Number — End angle.
 
duration:Number — Duration of the tween.
 
ease:Function (default = null) — Optional easer function.