# Menu's are Glitchy when together

**URL:** https://forum.kirupa.com/t/menus-are-glitchy-when-together/109719
**Category:** Uncategorized
**Created:** [May 8, 2004, 5:46am UTC](https://forum.kirupa.com/t/menus-are-glitchy-when-together/109719 "2004-05-08T05:46:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jjmancini](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jjmancini](https://forum.kirupa.com/u/jjmancini)
#### Post date: [May 8, 2004, 5:46am UTC](https://forum.kirupa.com/t/menus-are-glitchy-when-together/109719/1 "2004-05-08T05:46:51Z")

</div>

I have a question for you actionscript experts! (and novices)

If you go to  
[http://www.frunder.com/flash/test.html](http://www.frunder.com/flash/test.html)  
you will notice now 2 of the menu’s side by side. What I am trying to apply is actionscript that will tell menu1 to go down - when you mouse over menu2

Here is the code I have now on menu1, and man is it buggy…

```auto
on (rollOver) {
    if (_root.menu2_currentframe=24) {
        tellTarget ("_root.menu2") {
            gotoAndPlay("off");
        }
    } else if (_root.menu2_currentframe=1) {
        tellTarget ("_root.menu1") {
            gotoAndPlay("over");
        }
    }
}

```

Yes, yes, yes… I know it is really bad actionscripting.

So my questions are 2 fold.

1. What is the problem? Is there a better way to do this smoothly?

2. Right now I use a cool inertia effect based on when someone mouseover’s the button, it goes to the frame with the effect. Thus making it pop-up.

Is there a better way to do this? Is there actionscript that exists that just adds the inertia effect or easing effect on mouseover and on mouseout it goes back?

Thanks again for any replies!
