# Simple question

**URL:** <https://forum.kirupa.com/t/simple-question/122429>\
**Category:** Uncategorized\
**Created:** [September 13, 2004, 6:06pm UTC](https://forum.kirupa.com/t/simple-question/122429 "2004-09-13T18:06:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![themachine37](https://avatars.discourse-cdn.com/v4/letter/t/a4c791/32.png) [@themachine37](https://forum.kirupa.com/u/themachine37)\
**Post date:** [September 13, 2004, 6:06pm UTC](https://forum.kirupa.com/t/simple-question/122429/1 "2004-09-13T18:06:40Z")

</div>

Ok this is probably insanly simple for you guys but here is the question  
[http://www.gomanheim.com/zach/workman/test4/indexnewgalleryflash.htm](http://www.gomanheim.com/zach/workman/test4/indexnewgalleryflash.htm)

that is a site i am making for a client. currently when you click on the arrows the mc containing the thumbnails moves 60 pixels to the left or the right  
my current code looks like this

```auto
on (press) {
	thumb._x = thumb._x + 60;	
}

```

thumb is the name of the movie clip  
as you can see it is a rather choppy movement and as long as you keep pressing the buttons it will continue in each direction infinitly

i would like the animation to be smooth so that when you press the button and hold it in, the mc slides across the screen. and i would like to be able to have it stop when it reaches the end of the mc

can you help me?
