Easing Class (Linear Tween Transformations)

game

This example demonstrates the use of an Ease class for Flash MX. The Ease class is used to transform a linear transformation of a value between 1 and 0 to a non-linear easing representation of that progression. When applied to property adjustments, this makes for a visually pleasing easing effect. This class doesn't tween. It transforms a tween from linear to non-linear for the purposes of the effects of easing.

The class can be used for its static methods for this transformation or can be used to create instances that handle this in a more automatic manner. The running example manually takes advantage of the Ease class but code is provided that works with an instance as well.

The chart shows different variations of easing methods of the Ease class and how they transform a linear tween.

Developer: Trevor McCauley
Language: en