The Ease class is used to create functions that add an easing to a number value or percentage. Functions created take one numeric parameter t (0-1) and returns an eased version of that value. There are two kinds of Ease methods that are used to define Ease instances. The first are ease method methods, those which affect the actual ease behavior (ease 'method'). These include methods like sin and circular. The others define the ease type. These are Ease methods that start with 'easing' and determine whether or not an ease eases in or out or a combination of either. These methods include easingIn and easingInToBackOut.
new Ease()static public version:Stringpublic method:Functionpublic type:Functionstatic public function compound():FunctionCompounds multiple ease functions to be called in sequential order as one function
A new easing function which will call each function passed in, evenly distributed, in sequential order.
public function create(f:Object):FunctionCreates a function reflective of the easing applied to the Ease instance. The function accepts one parameter, t:Number, and returns the eased version of its value when called. This function mimics the call() method of Ease.
f | An additional function the returned function can wrap |
A function which applies a tween to a number passed into it when called.
public function call(t:Number):NumberApplies Easing as defined by the Ease instance to the value passed.
t | A value 0-1 which is to have easing applied to it |
The eased version of the number passed.
public function easingIn(a:Number):EaseModifies the Ease to ease in by a specified amount
a | Amount of easing applied to the ease |
The current Ease instance
public function easingOut(a:Number):EaseModifies the Ease to ease out by a specified amount
a | Amount of easing applied to the ease |
The current Ease instance
public function easingInToIn(a:Number, c:Number):EaseModifies the Ease to apply two easing in eases in succession
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingInToOut(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing in, the second easing out
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingOutToOut(a:Number, c:Number):EaseModifies the Ease to apply two easing out eases in succession
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingOutToIn(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing out, the second easing in
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingInToBackIn(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing all the way in, the second easing in back to the the ease start
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingInToBackOut(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing all the way in, the second easing out back to the the ease start
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingOutToBackOut(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing all the way out, the second easing out back to the the ease start
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function easingOutToBackIn(a:Number, c:Number):EaseModifies the Ease to apply two eases in succession, the first easing all the way out, the second easing out in to the the ease start
a | Amount of easing applied to the ease |
c | The point at which the first ease changes to the next in percent) |
The current Ease instance
public function linear(Void):EaseModifies the Ease to apply linear easing (no easing)
The current Ease instance
public function exponential(p:Number):EaseModifies the Ease to apply exponential easing
p | The exponential power of the easing; the higher the greater the ease |
The current Ease instance
public function exponentialAnticipate(p:Number, a:Number):EaseModifies the Ease to apply exponential easing with anticipation (backing up before going forward)
p | The exponential power of the easing; the higher the greater the ease |
a | (Optional) The anticipation percent factor. The greater, the more the anticipation. Default: .5. |
The current Ease instance
public function sin(Void):EaseModifies the Ease to apply easing based on the sine curve
The current Ease instance
public function sinAnticipate(a:Number):EaseModifies the Ease to apply easing based on the sine curve with anticipation (backing up before going forward)
a | (Optional) The anticipation percent factor. The greater, the more the anticipation. Default: .5. |
The current Ease instance
public function circular(Void):EaseModifies the Ease to apply circular easing
The current Ease instance
public function quadraticBezier(c:Number):EaseModifies the Ease to apply easing based on a quadratic bezier curve
c | (Optional) Control point placement along 0-1. Default .5. |
The current Ease instance
public function cubicBezier(c1:Number, c2:Number):EaseModifies the Ease to apply easing based on a quadratic bezier curve
c1 | (Optional) First ontrol point placement along 0-1. Default .25. |
c2 | (Optional) Second ontrol point placement along 0-1. Default .75. |
The current Ease instance
public function bounce(b:Number, r:Number, e:Object):EaseModifies the Ease to apply a bouncing effect
b | (Optional) The number of bounces. Default 1. |
r | (Optional) The reduction applied to sequential bounces 0-1. Default 1. |
e | (Optional) An Ease instance or ease function to be used for the bounces Default (exponential). |
The current Ease instance
public function elastic(b:Number, r:Number, e:Object):EaseModifies the Ease to apply an elastic effect
b | (Optional) The number of bounces. Default 1. |
r | (Optional) The reduction applied to sequential bounces 0-1. Default 1. |
e | (Optional) An Ease instance or ease function to be used for the bounces Default (exponential). |
The current Ease instance