# Direction of scroll in Infinite Menu?

**URL:** <https://forum.kirupa.com/t/direction-of-scroll-in-infinite-menu/190342>\
**Category:** flash\
**Created:** [June 10, 2006, 7:04pm UTC](https://forum.kirupa.com/t/direction-of-scroll-in-infinite-menu/190342 "2006-06-10T19:04:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fourever\_after](https://avatars.discourse-cdn.com/v4/letter/f/6bbea6/32.png) [@fourever\_after](https://forum.kirupa.com/u/fourever_after)\
**Post date:** [June 10, 2006, 7:04pm UTC](https://forum.kirupa.com/t/direction-of-scroll-in-infinite-menu/190342/1 "2006-06-10T19:04:41Z")

</div>

I’m hoping this will be a very quick AS question.

I’ve been following the Infinite Menu Tutorial ([http://www.kirupa.com/developer/mx/infinite.htm) to](http://www.kirupa.com/developer/mx/infinite.htm) to) create my navigation. I’ve gotten it to work just like in the tutorial, but that is the problem. When there is a button to the right and you move to click it, it scrolls off the screen. Is is possible to change the direction of the scroll? I’ve tried switching the number/signs around, but so far I haven’t come up with anything.

onClipEvent (load)  
{  
xcenter=463.2;  
speed=1/200;  
}  
onClipEvent (enterFrame)  
{  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance_speed);  
}  
onClipEvent (enterFrame)  
{  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance_speed);  
if (\_x \> 0) \_x=-955.3;  
if (\_x \< -955.3) \_x=0;  
}
