Scroll in the opposite direction?

Im using the infinite menu, but instead of scrolling to the right when you mouseover the right and so forth, I want to scroll in the opposite direction. When I mouseover the right side I want the movie to scroll left. Any help is greatly appreciated…

Negate the equation.

The equation that makes the menu run (probably says something like clip._x += whatever) has to be reversed, so in that case, put the whole thing in parenthesis and add a - symbol to the front of it (in front of the first parenthesis).

This should work.

But then again, I never did the tutorial so I don’t know the code.

hmmm, Im not sure I understand but here is the code, can you point it out?

onClipEvent (load)
{
xcenter=297.5;
speed=.01;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse+xcenter;
_x+=(distancespeed);
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance
speed);
if (_x > 0) _x=-590;
if (_x < -595) _x=0;
}

Ok… well first you have to onClipEvent(enterFrames)… which makes no sense… so I will remove that.

onClipEvent (load)
{
xcenter=297.5;
speed=.01;
}
onClipEvent (enterFrame) {
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-590;
if (_x < -595) _x=0;
}

Now… do you see the line _x += (distance*speed); ??

Try change that to

_x += -(distance*speed);

Anything?

Hey lostinbeta, that worked thanks a lot !!

No problem :slight_smile: