# My menu easing

**URL:** https://forum.kirupa.com/t/my-menu-easing/119847
**Category:** Uncategorized
**Created:** [August 18, 2004, 2:39pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847 "2004-08-18T14:39:19Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [August 18, 2004, 2:39pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/1 "2004-08-18T14:39:19Z")

</div>

[this site i am working on](http://www.aspirebcg.com/clients/roddy) the menu is not exactly how i would like it. does anyone know how to make the little easing piece i have stop over each word and if you stop between words it will jump to the next word.

here you can take a look

[www.aspirebcg.com/clients/roddy](http://www.aspirebcg.com/clients/roddy)

---

<div class="post-metadata">

### Author: ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)
#### Post date: [August 18, 2004, 3:04pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/2 "2004-08-18T15:04:31Z")

</div>

what are the actions for the moving mc? and the actions for the buttons?

80% its just an adjustment at the calculation

---

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [August 18, 2004, 3:10pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/3 "2004-08-18T15:10:49Z")

</div>

well right now i think that i am doing this the totall crap way. i have a mc that is the length of the whole menu bar and i just have that shape easing along that mc. that is why i question if there is (i am sure there is) a much better and more professional way to do this.

---

<div class="post-metadata">

### Author: ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)
#### Post date: [August 18, 2004, 3:15pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/4 "2004-08-18T15:15:53Z")

</div>

you’d probably have an variable in that mc with:

> 

newX = \_root.\_xmouse

or something simular…

make sure you set the vars on the buttons with an rollover

> 

on(rollOver){  
\_root.easingMc.newX = this.\_x + this.\_width/2  
}

adjust it to your needs…

---

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [August 18, 2004, 4:43pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/5 "2004-08-18T16:43:44Z")

</div>

yep i think that would work, thanks for your help!

---

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [August 18, 2004, 6:24pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/6 "2004-08-18T18:24:26Z")

</div>

i guess i am still a little off here is what is in my mc

```auto
onClipEvent (load) {
	_root.tarX = 262;
}
onClipEvent (enterFrame) {
	if (_root.box.hitTest(_root._xmouse, _root._ymouse)) {
		_root.tarX = _root._xmouse;
	}
	_root.bigbox._x = _root.tarX-(_root.tarX-_root.bigbox._x)/1.2;
}

```

and here is what is on my button

```auto
on (rollOver) {
	_root.box.tarX = this._x+this._width/2;
}

```

my mc is named box

---

<div class="post-metadata">

### Author: ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)
#### Post date: [August 18, 2004, 6:30pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/7 "2004-08-18T18:30:11Z")

</div>

looks like this is a bit useless…

```
if (_root.box.hitTest(_root._xmouse, _root._ymouse)) {
	_root.tarX = _root._xmouse;
}
```

---

<div class="post-metadata">

### Author: ![JustinM](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@JustinM](https://forum.kirupa.com/u/JustinM)
#### Post date: [August 20, 2004, 8:17pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/8 "2004-08-20T20:17:28Z")

</div>

I think what you want to do is have the slider ease to a certain position corresponding to a menu option, not the mouse position. If you post the fla, I’ll give it a shot.

---

<div class="post-metadata">

### Author: ![rlLife](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@rlLife](https://forum.kirupa.com/u/rlLife)
#### Post date: [August 20, 2004, 8:21pm UTC](https://forum.kirupa.com/t/my-menu-easing/119847/9 "2004-08-20T20:21:56Z")

</div>

i will post it later i have it at home and i am at work. really all there is is a movie clip. that has the code from above in it. and also a button. it is that simple but it does not work. i will post it later for you to check out.
