# \[F5\]Need Help Whit Slide Menu!

**URL:** <https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530>\
**Category:** flash\
**Created:** [February 14, 2003, 9:03am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530 "2003-02-14T09:03:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dana](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@dana](https://forum.kirupa.com/u/dana)\
**Post date:** [February 14, 2003, 9:03am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/1 "2003-02-14T09:03:15Z")

</div>

hello,  
i saw a graet menu at [www.bukwild.com](http://www.bukwild.com).  
when i done this i used this script, but didn’t work the same! PLS help!

onClipEvent (load) {  
inertia = 0.6;  
k = 0.1;  
}  
onClipEvent (enterFrame) {  
x = -this.\_x+\_root.\_xmouse;  
xp = xp_inertia+x_k;  
\_x += xp;  
}

pls have a look at [www.bukwild.com](http://www.bukwild.com) and tell me how you think that it is done! The buttons go after each other but not above each other.

thanks!

---

<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:** [February 14, 2003, 11:50am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/2 "2003-02-14T11:50:57Z")

</div>

Well, I think those are just rollOvers… I don’t quite see where you could put that code :-\

---

<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:** [February 14, 2003, 3:13pm UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/3 "2003-02-14T15:13:49Z")

</div>

the buttons follow the mouse, but they don’t just follow the mouse. there is a differt of space between them.

So it can’t be just a rollover!  
but thanks anyway.

---

<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:** [February 15, 2003, 12:25am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/4 "2003-02-15T00:25:59Z")

</div>

Oups sorry, I didn’t see that. It’s just easing with different easing speeds. Read the tute about easing and everything should be clear. [SIZE=1]Otherwise, just :trout: Lost[/SIZE]

---

<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:** [February 18, 2003, 8:54am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/5 "2003-02-18T08:54:16Z")

</div>

Thank you! it workt!

But know i have a nother problem whit it; when i put a nother button on the stage whit the same action script, the 2 buttons are on the same place.

On the site [www.bukwild.com](http://www.bukwild.com) they not on the same place and they not go above each other. How can i fix this?

Can you or some one else please help me?

greetz dana

---

<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:** [February 18, 2003, 10:00pm UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/6 "2003-02-18T22:00:00Z")

</div>

Show me your code 🙂

---

<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:** [February 19, 2003, 2:57am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/7 "2003-02-19T02:57:53Z")

</div>

I know I have a lot of fun playing with Robert Penners Easing Equations 😉 (A bit advanced, but fun none-the-less)

[http://www.robertpenner.com/scripts/easing\_equations.txt](http://www.robertpenner.com/scripts/easing_equations.txt)

---

<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:** [February 19, 2003, 8:34am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/8 "2003-02-19T08:34:48Z")

</div>

They are definitely advanced, but the good is: you don’t have to worry about that. All you need is to call the function with the right parameters and voilà :love:

Robert Penner is scary… :o

---

<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:** [February 19, 2003, 8:37am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/9 "2003-02-19T08:37:19Z")

</div>

You know me with my easing Ilyas… I have a natural love for Robert Penner for creating these!

And why is Penner scary?

---

<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:** [February 19, 2003, 8:39am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/10 "2003-02-19T08:39:53Z")

</div>

Because he’s so ■■■■ good :crazy: I don’t think I’ve ever opened one of his files and actually understood how it worked :-\

---

<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:** [February 19, 2003, 8:43am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/11 "2003-02-19T08:43:31Z")

</div>

I understand some of the easing equations, but yes, he is too ■■■■ good. People like that make me feel bad at Flash… ☹

---

<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:** [February 19, 2003, 9:30am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/12 "2003-02-19T09:30:01Z")

</div>

thanks for your advice, But i didn’t understant the link of robert.  
I write my script down maybe so i can explain it moore.

I have 3 MC and in each MC i have a button.

MC1 has this scrip:  
onClipEvent (load) {  
\_x = 0;  
speed = 5/1;  
}  
onClipEvent (enterFrame) {  
endX = \_root.\_xmouse-50;  
\_x += (endX-\_x)/speed;  
}

---

<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:** [February 19, 2003, 9:32am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/13 "2003-02-19T09:32:35Z")

</div>

MC2:  
onClipEvent (load) {  
\_x = 0;  
speed = 5/2;  
}  
onClipEvent (enterFrame) {  
endX = \_root.\_xmouse-30;  
\_x += (endX-\_x)/speed;  
}

---

<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:** [February 19, 2003, 9:33am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/14 "2003-02-19T09:33:39Z")

</div>

MC3:  
onClipEvent (load) {  
\_x = 0;  
speed = 5/3;  
}  
onClipEvent (enterFrame) {  
endX = \_root.\_xmouse-10;  
\_x += (endX-\_x)/speed;  
}

---

<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:** [February 19, 2003, 9:34am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/15 "2003-02-19T09:34:32Z")

</div>

It work but only to the right. When you go to the left, he pic the button on the right first. I preciat that you will help me, thanks for that!

---

<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:** [February 19, 2003, 10:54am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/16 "2003-02-19T10:54:58Z")

</div>

Sorry? What happens when you click on the left? :q:

---

<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:** [February 19, 2003, 10:57am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/17 "2003-02-19T10:57:15Z")

</div>

maybe i have to include some frame actions.  
Something like:  
stop ();  
if (\_root.\_xmouse\>0) {  
gotoAndStop (2);  
}

---

<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:** [February 19, 2003, 10:58am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/18 "2003-02-19T10:58:37Z")

</div>

when you slide whit your mouse to the left, the first button that goes that way is the button on the right.

---

<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:** [February 19, 2003, 10:59am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/19 "2003-02-19T10:59:48Z")

</div>

i’m sorry if mine english is not to good. i’m from holland!

---

<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:** [February 19, 2003, 11:03am UTC](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530/20 "2003-02-19T11:03:35Z")

</div>

No prob 🙂 I just wanted to make sure of the problem (I don’t speak that well either, I’m a poor Frenchman :trout: )

Anyway, what you could do is change the speed depending on the direction the clips are moving. Something like this:

```auto
onClipEvent (load) {
  _x = 0;
  speed = 5/3;
}
onClipEvent (enterFrame) {
  endX = _root._xmouse-10;
  if (endX > 0) speed=5/3;
  else speed=5/1;
  _x += (endX-_x)/speed;
}

```

Or something like this.

pom :cool:

[Next page](https://forum.kirupa.com/t/f5-need-help-whit-slide-menu/13530.md?page=2)
