[Flash MX 6.0r25] Please help with infinite menu


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. 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)
onClipEvent (enterFrame)
var distance=_root._xmouse-xcenter;
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,