# AS Noob alert! How to add easing to animation using AS?

**URL:** <https://forum.kirupa.com/t/as-noob-alert-how-to-add-easing-to-animation-using-as/178348>\
**Category:** flash\
**Created:** [February 9, 2006, 5:45pm UTC](https://forum.kirupa.com/t/as-noob-alert-how-to-add-easing-to-animation-using-as/178348 "2006-02-09T17:45:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_in\_2k](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mark\_in\_2k](https://forum.kirupa.com/u/mark_in_2k)\
**Post date:** [February 9, 2006, 5:45pm UTC](https://forum.kirupa.com/t/as-noob-alert-how-to-add-easing-to-animation-using-as/178348/1 "2006-02-09T17:45:58Z")

</div>

I have a simple MC that I want scolling only when the mouse is over it. It’s a small banner animation but I don’t want it running constantly as it may get a little distracting.

[Here’s a test of what I’m talking about.](http://www.bi-pro.com/temp/test.htm)

Basically, I want to add some easing to the animation so that when you roll over / out the anim doesn’t stop dead, but gradually slows down.

This is my AS code that I have running on the MC:

> on (release, rollOver) {  
> play();  
> }  
> on (release, rollOut) {  
> stop();  
> }

What would I need to add in order to get a nice easing happening?

TIA
