# Image Scroller Help

**URL:** https://forum.kirupa.com/t/image-scroller-help/200719
**Category:** flash
**Created:** [September 14, 2006, 2:48pm UTC](https://forum.kirupa.com/t/image-scroller-help/200719 "2006-09-14T14:48:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)
#### Post date: [September 14, 2006, 2:48pm UTC](https://forum.kirupa.com/t/image-scroller-help/200719/1 "2006-09-14T14:48:02Z")

</div>

Hello guys, I am working a image scroller but instead of scrolling images i am scroling buttons 12 to be exact. I have the code to get it to move from left to rite buti need it to stop when X gets to a certin position and i cant figure it out for the life of me.(still noob) Here is the code.

_onClipEvent (enterFrame) {  
if (\_root.\_xmouse\>300) {  
\_x -= 5;  
} else {  
\_x += 5;  
}  
}_

Easy enough.  
Also i wanted to put the scrolling on an on rollover even of a button. is that possable?  
Please let me know  
Thanks,  
kool
