# Problem with animated menu

**URL:** https://forum.kirupa.com/t/problem-with-animated-menu/62959
**Category:** flash
**Created:** [September 1, 2004, 10:29pm UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959 "2004-09-01T22:29:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kep0ne](https://avatars.discourse-cdn.com/v4/letter/k/9dc877/32.png) [@kep0ne](https://forum.kirupa.com/u/kep0ne)
#### Post date: [September 1, 2004, 10:29pm UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/1 "2004-09-01T22:29:49Z")

</div>

Hi all,

I created a basic animated menu, but I am having problems with it.

Example can be viewed at:  
[http://hazmatdesign.eesquad.org/advertech/](http://hazmatdesign.eesquad.org/advertech/)

As you can see, the menu will not stay static if I click anywhere (which is a problem for navigation)

How do I fix this?

The FLA file can be viewed at [http://hazmatdesign.eesquad.org/advertech/side.fla](http://hazmatdesign.eesquad.org/advertech/side.fla)

Thanks in advance

---

<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: [September 2, 2004, 12:39am UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/2 "2004-09-02T00:39:09Z")

</div>

Hey Keep0ne,

How are you make the menu move? Are you using a hitTest? Also I think that you are saving the file as a mx 2004 pro. I can’t open it. :thumb:

---

<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: [September 2, 2004, 2:00am UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/3 "2004-09-02T02:00:29Z")

</div>

the menu moves by a simple motion tween. the motion tween gets activated by the mouse click (although i haven’t put any actionscript to activate it), then closes via mouse click (which i want to avoid).

i am saving it as a flash mx 2004 doc…not sure why you can’t open it.

is there any part of the coding you want me to paste?

---

<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: [September 2, 2004, 2:09am UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/4 "2004-09-02T02:09:22Z")

</div>

Well I can’t open it?? I need to see how the file was made. Try saving it as MX :thumb:

---

<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: [September 2, 2004, 6:16am UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/5 "2004-09-02T06:16:28Z")

</div>

FlashPlaya,

I’ve sort of figured a way around my previous problem, but have now stumbled on this one.

The file can be downloaded at: [http://hazmatdesign.eesquad.org/advertech/site.fla](http://hazmatdesign.eesquad.org/advertech/site.fla)

I currently have an invisible button to start the animation, and an invisible button to close the menu. The problem is, if I roll over the same button, the menu will in a sense, loop over. I used some if/else script which might be the problem.

* * *

on (rollOver) {  
if (\_root.menu\_drop.\_currentframe=“15”) {  
\_root.menu\_drop.gotoAndPlay(“16”);  
} else if (\_root.menu\_drop.\_currentframe=“1”) {  
\_root.menu\_drop.stop();  
}  
}

* * *

---

<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: [September 2, 2004, 6:25am UTC](https://forum.kirupa.com/t/problem-with-animated-menu/62959/6 "2004-09-02T06:25:25Z")

</div>

HAH! I fixed it. currentframe=“15” should be currentframe == “15”

Thanks!
