Tuesday, May 22, 2007

Quick note on Penner's Easing in Flash

I just found that I had an old component using the com.robertpenner.easing library. I don’t know how the AS 2.0 version of that library got so popular. Most of the classes in Penner’s AS 2 easing library are included in the mx.transitions.easing package and always have been. Though, some of the classes have different names in mx.transitions.easing.


The code in the mx classes and Penner's classes is identical. The only difference is that the mx version has a Macromedia copyright text block above Penner's code. Following are the mx easing classes with their corresponding Penner classes.

Penner’s com.robertpenner.easing.Quad is renamed mx.transitions.easing.Regular, Quint is renamed Strong, Linear renamed None. The classes Back, Elastic, and Bounce were not even renamed.

You may still need to use the following Penner classes as they are not a part of the mx.transitions.easing package:
Cubic, Quart, Circ, Sine, and Expo.

Labels:

0 Comments:

Post a Comment

<< Home