Tweening engine used for animating DiagramObjects boxes and transforming DiagramLinks paths
protected var _curtime:int
curtime:uint [read-only]
Implementation
public function get curtime():uint
protected var _dispatcher:EventDispatcher = null
protected var _duration:uint = 0
duration:uint [read-write]
Default duration in milliseconds of the animation.
Might be overriden by participant Tweeners.
Used as tweener duration when Tweener::duration==0
Implementation
public function get duration():uint
public function set duration(value:uint):void
protected var _easingfunc:Function = null
easingfunction:Function [read-write]
Default easing function.
Might be overriden by participant Tweeners.
Used as tweener easing function when Tweener::easingfunction==null
Implementation
public function get easingfunction():Function
public function set easingfunction(value:Function):void
frequency:uint [read-write]
Frequency in frames/second of the animation
Implementation
public function get frequency():uint
public function set frequency(value:uint):void
protected var _interval:uint
protected var _nbactive:uint = 0
playing:Boolean [read-only]
Implementation
public function get playing():Boolean
protected var _starttime:uint
protected var _timer:Timer = null
protected var _tweeners:Array
public function TweenEngine(disp:EventDispatcher = null, freq:Number = 100, defaultduration:uint = 1000, easing:Function = null)
Parameters
| disp:EventDispatcher (default = null) — frequency in frames/second of the animation
|
| |
| freq:Number (default = 100) — defaultduration used for tweeners whose duration == 0
|
| |
| defaultduration:uint (default = 1000) — default easing function used for tweeners whose easingfunction == null
|
| |
| easing:Function (default = null) |
public function cancel():void
Moves the playhead to the start of animation and stops any further tweening.
protected function initTweeners():void
Initialises each tweener duration and easingfunction.
Called by play()
public function play(arr:Array):void
Starts to animate DiagramObjects referenced by a Tweener array.
Parameters
| arr:Array — An array of Tweener objects
|
public function stop():void
Moves the playhead directly to the end of animation and stops
protected function timerHandler(event:TimerEvent):voidParameters