I am going crazy trying to figure this out. I need help with my AS2 code (can code some in AS3).
Basically I’m trying to create this effect on a menu that follows your mouse only on the x axis yet snaps in place. I’ve found [URL=“http://www.kirupa.com/developer/mx/followease.htm”]this and it works just fine, except it goes partially off the window and doesn’t snap to the title. Here is my slightly modified code(just commented out the “y” lines):
onClipEvent (load) {
_x = 30;
// _y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
// endY = _root._ymouse;
_x += (endX-_x)/speed;
// _y += (endY-_y)/speed;
}
Here is my sad attempt (http://www.limbsaver.com/index3.php).
Thanks in Advance…