BETA ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Hide Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes

Language Reference only
Filters: AIR 32.0 and earlier, Flash Player 32.0 and earlier, Flash Lite 4
None
Hide Filters
spark.effects.easing 

IEaser  - AS3 Flex

(Preview)
Packagespark.effects.easing
Interfacepublic interface IEaser
Implementors Bounce, EaseInOutBase, Elastic, Linear

Language Version: ActionScript 3.0
Product Version: Flex 4
Runtime Versions: Flash Player 10, AIR 1.5

The IEaser interface is implemented by classes that provide time-easing functionality for the Animation class. Implementors are responsible for the single function, ease(), which takes and returns a fraction according to the easing behavior desired. As a simple example, LinearEase simply returns the same input fraction, since there is no easing performed by that easer. As another example, a reversing easer could be written which returned the inverse fraction, (1 - fraction).

By easing the fractional values of the time elapsed in an animation, these classes are easing the resulting values of the animation, but they only have to deal with the fractional value of time instead of any specific object types.

Related API Elements



Public Methods
 MethodDefined By
  
ease(fraction:Number):Number
Takes the fraction representing the elapsed duration of an animation (a value between 0.0 to 1.0) and returns a new elapsed value.
IEaser
Method Detail