# Mouse over coordinates

**URL:** <https://forum.kirupa.com/t/mouse-over-coordinates/58083>\
**Category:** flash\
**Created:** [July 19, 2004, 5:13pm UTC](https://forum.kirupa.com/t/mouse-over-coordinates/58083 "2004-07-19T17:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![joemama7976](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@joemama7976](https://forum.kirupa.com/u/joemama7976)\
**Post date:** [July 19, 2004, 5:13pm UTC](https://forum.kirupa.com/t/mouse-over-coordinates/58083/1 "2004-07-19T17:13:00Z")

</div>

I am looking to create a menu similar to the one found here:  
[http://www.denovoartwear.com/](http://www.denovoartwear.com/)  
All I need to know is how do you get the bar on this site the white rectangle) to go to a specific x-axis location on mouse over?  
Any help would be much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 5:57pm UTC](https://forum.kirupa.com/t/mouse-over-coordinates/58083/2 "2004-07-19T17:57:05Z")

</div>

take a look at the easing tutorial on this site and rather than set endX to equal the x location of the mouse, set it to your specific point…

^^ make sense? if not, shout.

Prophet.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 6:59pm UTC](https://forum.kirupa.com/t/mouse-over-coordinates/58083/3 "2004-07-19T18:59:41Z")

</div>

Im a little comfused on this one. I modified the code to just read:

onClipEvent (load) {  
\_x = 0;

```
speed = 5;

```

}  
onClipEvent (mouseDown) {  
endX = \_root.\_xmouse;

}  
onClipEvent (enterFrame) {  
\_x += (endX-\_x)/speed;

}

so that it would only go on the x-axis. What part do I modify with the specific point? thanks for your patience.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 19, 2004, 7:26pm UTC](https://forum.kirupa.com/t/mouse-over-coordinates/58083/4 "2004-07-19T19:26:39Z")

</div>

very close, but is there a way to modifiy this code so when you mouse over one of a few areas, the following object will go to a specific point/coordinate?

I was able to modified it to just move on the x-axis but dont understand Actionscripting enought to take the next step.
