# The Infinite Menu Question

**URL:** <https://forum.kirupa.com/t/the-infinite-menu-question/150009>\
**Category:** flash\
**Created:** [June 2, 2005, 10:59pm UTC](https://forum.kirupa.com/t/the-infinite-menu-question/150009 "2005-06-02T22:59:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kriticalx09](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kriticalx09](https://forum.kirupa.com/u/kriticalx09)\
**Post date:** [June 2, 2005, 10:59pm UTC](https://forum.kirupa.com/t/the-infinite-menu-question/150009/1 "2005-06-02T22:59:48Z")

</div>

Hello all, I am using the infinite menu tutorial from the kirupa web site. Here is my question: The tutorial is set up for a horizontal menu based on the X variable of the mouse. I am having mine be based vertically off the Y variable. I copy pasted the code in and set up my images just the same way. When I move the mouse up the menu scrolls up faster, however when I move the mouse down the menu just slows down a little and never comes to a stop or moves in the other direction. Here is a sample of my code and further explanation.

onClipEvent (load)  
{  
ycenter=592.5;  
speed=1/50;  
}  
onClipEvent (enterFrame)  
{  
var distance=\_root.\_ymouse-ycenter;  
\_y+=(distance\*speed);  
if (\_y \> 0) \_y=-1185;  
if (\_y \< -1185) \_y=0;  
}

The image is a movie clip compirsed of two duplicate movie clips places one above the other. The size of my image is 1185px tall by 100px wide. when the 2 are stacked one above the other the total height is 2380px. If anyone can assist me with this problem I would greatly appreciate it. Thanks alot!

Brendan.
