| Package | net.flashpunk.tweens.misc |
| Class | public class AngleTween |
| Inheritance | AngleTween Tween Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | active : Boolean
If the tween should update. | Tween | |
| angle : Number = 0
The current value. | AngleTween | ||
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
AngleTween(complete:Function = null, type:uint = 0)
Constructor. | AngleTween | ||
![]() | 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(fromAngle:Number, toAngle:Number, duration:Number, ease:Function = null):void
Tweens the value from one angle to another. | AngleTween | ||
![]() | update():void
Updates the Tween, called by World. | Tween | |
| angle | property |
public var angle:Number = 0The current value.
| AngleTween | () | Constructor |
public function AngleTween(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(fromAngle:Number, toAngle:Number, duration:Number, ease:Function = null):voidTweens 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.
|