Packageaway3d.animators.utils
Classpublic class AWTweener

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

Returns
Array — Array Returns an array contatining the tweened values
Wiki link
Click to go to the wiki page for 'away3d.animators.utils.AWTweener'

Code examples

Comments