Package | away3d.animators.utils |
Class | public class AWTweener |
Method | Defined by | ||
---|---|---|---|
AWTweener
()
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 |
AWTweener | () | constructor |
public function AWTweener()
Init Parameters
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
Parametersfps: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.
|
Array — Array Returns an array contatining the tweened values
|