Packageaway3d.animators.utils
Classpublic class AWTweener
InheritanceAWTweener Inheritance Object



Public Methods
 MethodDefined By
  
AWTweener, a simplified tweening system to allow native tweens.
AWTweener
  
calculate(fps:Number = 30, startval:Number = 0, endval:Number = 1, duration:Number = 250, easeIn:Boolean = false, easeOut:Boolean = false):Array
[static] precalculates the numerical tween, returns steps as array
AWTweener
Constructor Detail
AWTweener()Constructor
public function AWTweener()

AWTweener, a simplified tweening system to allow native tweens. Supports linear, ease in or ease out. Sophisticated tweens can be done using third party tweeners.

####INIT####
Method Detail
calculate()method
public static function calculate(fps:Number = 30, startval:Number = 0, endval:Number = 1, duration:Number = 250, easeIn:Boolean = false, easeOut:Boolean = false):Array

precalculates the numerical tween, returns steps as array

Parameters

fps:Number (default = 30) — Number. Frame rate per second. Default = 30.
 
startval:Number (default = 0) — Number. Start value. Default = 0.
 
endval:Number (default = 1) — Number. End value. Default = 1.
 
duration:Number (default = 250) — Number. Duration in millisec. Default = 250.
 
easeIn:Boolean (default = false) — Boolean. If the values are tweened with an ease in. Default = false.
 
easeOut:Boolean (default = false) — Boolean. If the values are tweened with an ease out. Default = false.

Returns
Array — Array Returns an array contatining the tweened values