# Infinite Menu - help me configure

**URL:** https://forum.kirupa.com/t/infinite-menu-help-me-configure/52162
**Category:** flash
**Created:** [May 20, 2004, 5:37pm UTC](https://forum.kirupa.com/t/infinite-menu-help-me-configure/52162 "2004-05-20T17:37:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![SteadyScene](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@SteadyScene](https://forum.kirupa.com/u/SteadyScene)
#### Post date: [May 20, 2004, 5:37pm UTC](https://forum.kirupa.com/t/infinite-menu-help-me-configure/52162/1 "2004-05-20T17:37:54Z")

</div>

Using the tutorial found on [Kirupa.com](http://Kirupa.com):

[http://www.kirupa.com/developer/mx/infinite.htm](http://www.kirupa.com/developer/mx/infinite.htm)

I am able to get this infinite menu customized for my client site, however, when the page loads the menu scrolls frantically, following the mouse obviously. What is the code to have the infinite menu remain still until moused over?

Here is the code from my customization:

onClipEvent (load)  
{  
xcenter=400;  
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 \> 400) \_x=-206;  
if (\_x \< -206) \_x=400;  
}

Thanks!  
Daniel
