design. business. life.

Information

This article was written on 16 Jul 2009, and is filled under Flash.

Current post is tagged

, , , ,

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.

7 Comments

  1. Micha Bowlet
    January 15, 2012

    Hiya. Mainly wanted to make a brief comment and inquire exactly where you bought your particular site model I will be creating own website and sincerely really like your personal template.

  2. Wallace Funkhouser
    February 7, 2012

    Terrific post. Now, can I translate your post and post it in my blog quoting you as the author? I’d enjoy it. Thanks

  3. Definitely believe that which you stated. Your favorite justification seemed to be on the internet the simplest thing to be aware of. I say to you, I definitely get annoyed while people think about worries that they just don’t know about. You managed to hit the nail upon the top and also defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks

  4. braceria bari
    February 20, 2012

    The article is extremely sharped about the topic, very good job

  5. Generally I don’t learn post on blogs, however I wish to say that this write-up very forced me to take a look at and do it! Your writing taste has been amazed me. Thank you, very nice article.

  6. Warner Francoise
    March 9, 2012

    Reading articles on other people gives me much satisfaction and serenity.

  7. Monika Hozempa
    March 17, 2012

    Great publish and useful info. There’s no doubt that this is just what I just read somewhere but We dont know with your knowledge

Leave a Reply