# Drop-Down Menu Problems

**URL:** <https://forum.kirupa.com/t/drop-down-menu-problems/183021>\
**Category:** flash\
**Created:** [March 23, 2006, 5:42am UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021 "2006-03-23T05:42:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Korgan](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@Korgan](https://forum.kirupa.com/u/Korgan)\
**Post date:** [March 23, 2006, 5:42am UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/1 "2006-03-23T05:42:16Z")

</div>

Hi,

I’m setting up a complex drop down menu, so that when you “rollover” a menu item on the menu bar a sub menu slides down underneath the bar giving you more buttons to choose. Now I managed to set up the animation so that the “rollover” works, and that the submenu button works.

My problem is how can do I script it that when I roll away from the sub menu or click a sub-menu item the secondary menu moves itself back up?

I’m attaching what I have so far.

---

<div class="post-metadata">

**Author:** ![Bokke](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Bokke](https://forum.kirupa.com/u/Bokke)\
**Post date:** [March 23, 2006, 6:45am UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/2 "2006-03-23T06:45:52Z")

</div>

You should made the animation a movieclip and then when you rollout just revers it. post your fla, so we can see how its done 🙂

---

<div class="post-metadata">

**Author:** ![death\_by\_nines](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@death\_by\_nines](https://forum.kirupa.com/u/death_by_nines)\
**Post date:** [March 23, 2006, 5:46pm UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/3 "2006-03-23T17:46:22Z")

</div>

I am trying to make a menu something like [gucci.com](http://gucci.com) but my problem is this: the hit area for my button within a movieclip is interfering with my hitarea for the sliding bars. maybe this is the wrong way to approach this. can anyone help me? below is AS i have so far…

var bar1x = -162;  
var bar2x = -228;  
var speed1 = 30; // speed of box 1  
var speed2 = 60; // speed of box 2  
var speed3 = 10; // speed of text coming in / out  
var textAlpha = 0;  
text.\_alpha = 0;

var motionInterval = setInterval(checkBars,10);

theHitArea.onRollOver = function() {  
//text.\_x = 3;  
//text.\_y = 15;   
bar1x = -2;  
bar2x = -2;  
textAlpha = 100;  
}

theHitArea.onRollOut = function() {  
bar1x = -162;  
bar2x = -228;  
textAlpha = 0;  
}

function checkBars() {  
bar1.\_x += (bar1x-bar1.\_x)/speed1;  
bar2.\_x += (bar2x-bar2.\_x)/speed2;   
text.\_alpha += (textAlpha-text.\_alpha)/speed3;  
}

stop();

---

<div class="post-metadata">

**Author:** ![Bokke](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Bokke](https://forum.kirupa.com/u/Bokke)\
**Post date:** [March 23, 2006, 6:15pm UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/4 "2006-03-23T18:15:57Z")

</div>

Wow [U]death by nines[/U], man… Please dont **Hijack** someone else’s tread!  
Please, if you have a problem just start a new topic!

Oh, and welcome to the forums! :flower:

---

<div class="post-metadata">

**Author:** ![Friendly](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@Friendly](https://forum.kirupa.com/u/Friendly)\
**Post date:** [March 23, 2006, 6:17pm UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/5 "2006-03-23T18:17:27Z")

</div>

> **[Is it possible for php to check for file on users computers?](https://www.kirupa.com/forum/showthread.php?t=210964)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

skyo sucks monkey balls!

---

<div class="post-metadata">

**Author:** ![death\_by\_nines](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@death\_by\_nines](https://forum.kirupa.com/u/death_by_nines)\
**Post date:** [March 23, 2006, 6:30pm UTC](https://forum.kirupa.com/t/drop-down-menu-problems/183021/6 "2006-03-23T18:30:03Z")

</div>

thought it was related. …geez, man.
