Hi!
I am trying to work out something with this tutorial:
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:
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/
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