# Infinite vertical scrolling menu

**URL:** <https://forum.kirupa.com/t/infinite-vertical-scrolling-menu/72702>\
**Category:** Uncategorized\
**Created:** [December 8, 2004, 3:40pm UTC](https://forum.kirupa.com/t/infinite-vertical-scrolling-menu/72702 "2004-12-08T15:40:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grimmus](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@grimmus](https://forum.kirupa.com/u/grimmus)\
**Post date:** [December 8, 2004, 3:40pm UTC](https://forum.kirupa.com/t/infinite-vertical-scrolling-menu/72702/1 "2004-12-08T15:40:23Z")

</div>

Hi,  
I am using POMs tutorial for making an infinite menu  
This one is vertical instead of horizontal.  
The MC is 1696 pixels in height. registration is top middle  
i drag 2 of these MC’s so one is below the other (total height 3392)  
Here is my code

```auto
 

onClipEvent (load)
{
   ycenter=848;
   speed=1/10;
}
onClipEvent (enterFrame)
{

   var distance=_root._ymouse-ycenter;
   _y+=(distance*speed);
   
 if (_y > 0) _y=-1696;
   if (_y < -1696) _y=0;
}

```

The clip goes really fast and is making me foam at the mouth if i look at it for too long!  
I tried changing ycenter to 300, and it is much smoother but it is very jumpy when moving back to the position determined by the code.  
Any help is great
