hello guru’s, i am having a problem developing an infinate menu based on the following script: (many of you may have seen this tut. on kirupa)
onClipEvent (load)
{
xcenter=150;
speed=1/10;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}
or see the tut.: http://www.kirupa.com/developer/mx/infinite.htm
my movie is 756 px. wide, does anyone know how to correctly adapt this code to accomodate this sized movie (the default for this script is 300 px.),
i have tried to create a new MC to to replace the current menu_general MC object, but when i create it with the registration point on the left center, and put the clip’s _x on 0, the left edge of the clip is in the center of my stage (as opposed to the left edge, which should be zero) ???
i’m kinda lost on this anomaly…