# Question about actionscript!

**URL:** https://forum.kirupa.com/t/question-about-actionscript/13456
**Category:** flash
**Created:** [February 13, 2003, 3:15pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456 "2003-02-13T15:15:20Z")
**Posts on this page:** 7
**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 13, 2003, 3:15pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/1 "2003-02-13T15:15:20Z")

</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 how it suppose! 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!

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 13, 2003, 3:34pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/2 "2003-02-13T15:34:04Z")

</div>

seems to me that they put each of the menutabs in an MC and have that MC follow the horizontal position of the mouse cursor within an certain range. I don’t know if for this you need some kind of collision detecten? For the rest just onRollOvers.

---

<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 13, 2003, 3:45pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/3 "2003-02-13T15:45:17Z")

</div>

i taught that also, but it can’t ; because then they move together next to each other.  
And a nother thing they go after each other and don’t go above each other.  
How do the do that?  
Do you have a nother suggestion?  
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 13, 2003, 3:46pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/4 "2003-02-13T15:46:37Z")

</div>

What do you mean by onrollovers?  
How can you do 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 13, 2003, 3:47pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/5 "2003-02-13T15:47:26Z")

</div>

you forgot to add a **}** at the end of the code 😉

```auto

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

```

Cheers :bounce:

---

<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 13, 2003, 3:53pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/6 "2003-02-13T15:53:27Z")

</div>

i know that! only in this form, but not in my MC!

---

<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 13, 2003, 5:28pm UTC](https://forum.kirupa.com/t/question-about-actionscript/13456/7 "2003-02-13T17:28:23Z")

</div>

Looks like it moves according to some of Robert Penners Easing Equations to me…

Some great stuff here (but definitely advanced)…

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