# Stopping \_xmovement with mouseover

**URL:** <https://forum.kirupa.com/t/stopping--xmovement-with-mouseover/48810>\
**Category:** Uncategorized\
**Created:** [April 16, 2004, 10:17pm UTC](https://forum.kirupa.com/t/stopping--xmovement-with-mouseover/48810 "2004-04-16T22:17:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybereaper](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cybereaper](https://forum.kirupa.com/u/cybereaper)\
**Post date:** [April 16, 2004, 10:17pm UTC](https://forum.kirupa.com/t/stopping--xmovement-with-mouseover/48810/1 "2004-04-16T22:17:45Z")

</div>

Sorry, I’ve searched and searched, but no luck - here’s my question:  
I want ac MC to move along an X axis as I roll over certain buttons. And, I want to to end to the right of the button, so I need an offset or an actual X location. I’ve created an mc to contain the entire menu, then each button and one mc to move along the x axis.  
I know how to make an mc follow a mouse, but I don’t know how to declare where the MC will stop in relation to an object or how to make it move slowly toward that object with a rollover command. I was able to create the following:  
on(rollOver) {  
this.mc.\_x = this.mc.xvalue = \_root.\_xmouse + 2;  
} // but that only makes the object jump to a point  
I want to be able to dedicate that desired object+2 as the new location for my mc and I want my mc to move to that location, not jump.  
I’m sure I’ve complicated this for myself. I appreciate any help. :rd:
