# Menu follow users mouse issue (blahhhhhh!)

**URL:** <https://forum.kirupa.com/t/menu-follow-users-mouse-issue-blahhhhhh/323223>\
**Category:** Uncategorized\
**Created:** [June 21, 2011, 6:13pm UTC](https://forum.kirupa.com/t/menu-follow-users-mouse-issue-blahhhhhh/323223 "2011-06-21T18:13:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deezknots](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@deezknots](https://forum.kirupa.com/u/deezknots)\
**Post date:** [June 21, 2011, 6:13pm UTC](https://forum.kirupa.com/t/menu-follow-users-mouse-issue-blahhhhhh/323223/1 "2011-06-21T18:13:11Z")

</div>

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](http://www.abugarcia.com/) 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](http://www.limbsaver.com/index3.php)).  
Thanks in Advance…
