Abstract base class for any tweener object
protected var _delay:uint = 0
delay:uint [read-only]Implementation
public function get delay():uint
protected var _duration:uint = 0
duration:uint [read-write]Implementation
public function get duration():uint
public function set duration(value:uint):void
protected var _easingfunc:Function = null
easingfunction:Function [read-write]Implementation
public function get easingfunction():Function
public function set easingfunction(value:Function):void
protected var _finished:Boolean = false
finished:Boolean [read-only]
Implementation
public function get finished():Boolean
protected var _target:DiagramObject = null
public function Tweener(target:DiagramObject, dur:uint = 0, del:uint = 0, easing:Function = null)
Parameters
| target:DiagramObject — The DiagramObject which is the target of the tweening effect
|
| |
| dur:uint (default = 0) — Duration of the effect
|
| |
| del:uint (default = 0) — Delay to wait before starting to play the effect
|
| |
| easing:Function (default = null) — Easing function to be used by the effect
|
public function defaultEasing(curtime:Number, startvalue:Number, deltavalue:Number, duration:Number):Number
Default easing function. Used when neither TweenEngine nor this class eassing function has been set
Parameters
| curtime:Number — Internal current time
|
| |
| startvalue:Number — Initial value
|
| |
| deltavalue:Number — Value variation
|
| |
| duration:Number — Total duration of tweening (delay excluded)
|
Returns
| Number — the new computed value
|
public function postProcessing():void
Override this method in Tweener subclasses
Called when tweening is finished
public function render(curtime:uint):void
Override this method, to apply the effect to the target
Parameters
| curtime:uint — Internal current time, set by the TweenEngine
|
public function reset():void
Call this method before reusing a finished Tweener
public function revert():void
public function stop():void