# Moving \_x position w/easing?

**URL:** https://forum.kirupa.com/t/moving--x-position-w-easing/219101
**Category:** Uncategorized
**Created:** [March 13, 2007, 9:32pm UTC](https://forum.kirupa.com/t/moving--x-position-w-easing/219101 "2007-03-13T21:32:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![htrain26](https://avatars.discourse-cdn.com/v4/letter/h/d07c76/32.png) [@htrain26](https://forum.kirupa.com/u/htrain26)
#### Post date: [March 13, 2007, 9:32pm UTC](https://forum.kirupa.com/t/moving--x-position-w-easing/219101/1 "2007-03-13T21:32:01Z")

</div>

I have a gallery with a menu that is a row of  
thumbnails (horizontal–right to left). And a button  
on each side of the tumbnail menu—and of course when  
you click on the right button the menu scrolls to the  
right and vise-versa for the left button. The code I  
have on the buttons is pretty basic:

right\_btn.onRelease = function(){  
menu\_01.\_x -= 20;  
}

I’m trying to set-up the menu so that when you click on one on the buttons  
the menu slides over so many pixels and eases out. And I also need the  
buttons to know when the menu mc has reached its end(say the menu is only 400  
pixels wide). I’ve tried a few different things with no luck.

Any idea’s or direction to a tutorial???

I would really any help.

thanks,  
hutch
