# \[Flash MX 6.0r25\] Please help with infinite menu

**URL:** https://forum.kirupa.com/t/flash-mx-6-0r25-please-help-with-infinite-menu/96451
**Category:** Uncategorized
**Created:** [December 9, 2003, 4:33pm UTC](https://forum.kirupa.com/t/flash-mx-6-0r25-please-help-with-infinite-menu/96451 "2003-12-09T16:33:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vexed](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@vexed](https://forum.kirupa.com/u/vexed)
#### Post date: [December 9, 2003, 4:33pm UTC](https://forum.kirupa.com/t/flash-mx-6-0r25-please-help-with-infinite-menu/96451/1 "2003-12-09T16:33:48Z")

</div>

Hello,

Thanks for the site. I have been using the ActionScript tutorials lately and they have been very easy to follow and educational. I adapted one in particular for my Web site but it has been giving me some trouble.

The site address is [lucid-interactive.com/portfolio.html](http://www.lucid-interactive.com). As you will see I am using the infinite scrolling menu but it is not functioning correctly. It was functioning correctly until I added a button, which has some how broken it. The code I am using is:

\*\*onClipEvent (load)  
{  
xcenter=287.5;  
speed=1/10;  
}  
onClipEvent (enterFrame)  
{  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance\*speed);  
if (\_x \> 0) \_x=-1183;  
if (\_x \< -1183) \_x=0;  
} \*\*

1183 is the exact length of the base movie clip _(2386 is the length of the movie that the AS is attached to)_ and 287.5 is the center point of the entire movie (575).

Thanks for any help,  
vexed
