Easing Options in Actionscript 3.0

Found this great info here

About the easing classes

Easing refers to gradual acceleration or deceleration during an animation. For example, a ball might gradually increase its speed near the beginning of an animation, but slow down right at the end of the animation before it arrives at a full stop. Adding easing helps your animations appear more realistic.

Flash offers six easing classes for use with the Tween and TransitionManager classes:

  • Back: Extends the animation beyond the transition range at one or both ends at once to resemble an overflow effect.
  • Bounce: Adds a bouncing effect within the transition range at one or both ends. The number of bounces relates to the duration—longer durations produce more bounces.
  • Elastic: Adds an elastic effect that falls outside the transition range at one or both ends. The amount of elasticity is unaffected by the duration.
  • Regular: Adds slower movement at one or both ends. This feature enables you to add a speeding-up effect, a slowing-down effect, or both.
  • Strong: Adds slower movement at one or both ends. This effect is similar to Regular easing, but it’s more pronounced.
  • None: Adds an equal movement from start to end without effects, slowing, or speeding up. This transition is also referred to as a linear transition.

The previous six easing classes each have three easing methods:

  • easeIn: Provides the easing effect at the beginning of the transition.
  • easeOut: Provides the easing effect at the end of the transition.
  • easeInOut: Provides the easing effect at both the beginning and end of the transition.

Note: The None class contains the easeNone method, as seen in the TransitionManager code example above.

If you want to open these classes in Flash or read the code in your ActionScript editor, you can find the class files in Adobe\Adobe Flash CS4\Common\Configuration\ActionScript 3.0\projects\Flash\src\fl\transitions.

See the fl.transitions.easing package section of the ActionScript 3.0 Language and Component Reference for more information on the TransitionManager class.

Leave a Reply

This entry was posted on Thursday, July 16th, 2009 at 10:20 pm and is filed under Flash Design & Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.