# How can I add more easing and a bounce?

**URL:** <https://forum.kirupa.com/t/how-can-i-add-more-easing-and-a-bounce/115723>\
**Category:** Uncategorized\
**Created:** [July 11, 2004, 6:41am UTC](https://forum.kirupa.com/t/how-can-i-add-more-easing-and-a-bounce/115723 "2004-07-11T06:41:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RadioactveChimp](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@RadioactveChimp](https://forum.kirupa.com/u/RadioactveChimp)\
**Post date:** [July 11, 2004, 6:41am UTC](https://forum.kirupa.com/t/how-can-i-add-more-easing-and-a-bounce/115723/1 "2004-07-11T06:41:35Z")

</div>

I have this code in a button. I want more exaggerated easing, but more importantly, a “bounce.” What I mean by this is on rollout, the button seems kinda sticky and jiggles back and forth a little. Can anyone help me out?

code:

onClipEvent (enterFrame) {  
if (\_root.\_ymouse \> 50 && \_root.\_ymouse \< 150) {  
\_root.yChange = Math.round(\_root.\_ymouse-this.\_y);  
\_root.xChange = Math.round(\_root.\_xmouse-this.\_x);  
\_root.yMove = Math.round(\_root.yChange/20);  
\_root.xMove = Math.round(\_root.xChange/20);  
this.\_y += \_root.yMove;  
this.\_x += \_root.xMove;  
}  
else {  
\_root.yChange = Math.round(this.\_y - 60);  
\_root.xChange = Math.round(this.\_x - 50);  
\_root.yMove = Math.round(\_root.yChange/20);  
\_root.xMove = Math.round(\_root.xChange/20);  
this.\_x -= \_root.xMove;  
this.\_y -= \_root.yMove;  
}  
}

-Deano

Who is totally clueless when it comes to AS

:thumb:
