Hi there
I’m making a gallery, with a few thumbnails of my Illustrations and I’m using the infinite menu.
It works great, but there’s one thing that bothers me, the fact that it keeps on moving when you’re not scrolling over it, it’s distracting. I would like to have it ease back to 0 when you move your mouse outside its boundaries, I’m loading the .swf into the main interface and I want it to remain visible, but only to scroll when you move inside its boundaries, other wise it’s running wild even when you’re using the rest of the interface.
This is the code for the infinite menu, as it is now:
onClipEvent (load) {
xcenter = 513;
speed = 1/10.5;
}
onClipEvent (enterFrame) {
var distance =_root._xmouse-xcenter;
_x -= (distance*speed);
if (_x>0) {
_x = -1109;
}
if (_x<-1109) {
_x = 0;
}
}
Can someone pleez help me solve this, I’m going slightly mad…Thanks