Hi all,
Can anyone help? I’ve created an infinite menu of scrolling photos that is loaded into a larger Flash file. I need to make the action in the infinite menu stop (so the photos stay frozen in their current position) when the cursor leaves the boundary of the menu. As it is now, the menu continues to react to the mouse position no matter where it is in the larger Flash file.
The action script I’ve used for the menu is:
onClipEvent (load){
xcenter=557.5;
speed=1/20;
}
onClipEvent (enterFrame){
var distance=_root._xmouse-xcenter;
_x-=(distance*speed);
if (_x > 0) _x=-2250;
if (_x < -2250) _x=0;
}
Any help is greatly appreciated!
Ryan