# Infinite menu

**URL:** <https://forum.kirupa.com/t/infinite-menu/230487>\
**Category:** Uncategorized\
**Created:** [June 26, 2007, 5:37pm UTC](https://forum.kirupa.com/t/infinite-menu/230487 "2007-06-26T17:37:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoakimN73](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JoakimN73](https://forum.kirupa.com/u/JoakimN73)\
**Post date:** [June 26, 2007, 5:37pm UTC](https://forum.kirupa.com/t/infinite-menu/230487/1 "2007-06-26T17:37:44Z")

</div>

Hi!

I am trying to work out something with this tutorial:

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

I have one movieclip (menu) that is made by 6 pictures x 100 pixels = 600 pixels. I have repeated it into menu\_general. So as I figure it out it is 1200 pixels as a totall.

This is the code that I have assigned to the menu\_general movieclip:

```auto
onClipEvent (load)
{
   xcenter=600;
   speed=20/400;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x+=(distance*speed);
   if (_x > 0) _x=-1200;
   if (_x < -1200) _x=0;
}

```

The result can be viewed here:

[http://www.redpoint.se/infinite/](http://www.redpoint.se/infinite/)

It doesn’t work as it should. Can anyone please tell me what I have done wrong here?

I have attached my scroll.fla file if someone feels like taking a look at it.

Would be nice with some help!  
JoakimN
