Thanks for that code...however im having problems with it. I would like it to disapear on the click of the buttons? And the main button at the top which is text based when put inside the MC its hit state seems to not be working. IE the menu will not roll down unless its on the text!.
I really like the way you have done the menu. It saves a lot of messing about with code compared to how I have done mine.
However I was wondering if there is any code I can add to mine to make it work right? Or fix the above?
Just draw a rectangular shape in the hit state, covering the whole area of your text, and that will become the new hit area.
As for it disappearing on a click of the buttons, give the instance name of menu to the menu movie clip, and on your buttons' scripts, add the following along with your other actions...
on (release) {
_root.menu.gotoAndStop(1);
// other actions
}
Ive put the button inside the MC where as before it was outside and controlled the MC from there. However when I put it inside with the new code it works.. However the hit state that activates the new code is much more sensitive to the text. Ihave redrawn it but its still sensitive?
Thanks for your help once again..I got it working. It seems that a hit state within a button doesn't act as ahit state for the whole movie clip. I created another "hit state",on the bottomlayer of the mc. I then removed the button from inside the MC and turned the aplha on the MC hit state to zero. This means I can put it over the original button that tweens in on the menu.
However I still haven't got the menu to disapear when the button inside the dropdown are clicked? I tried doing a _root.menu2.gotoAndStop(1)but it didn't work?
Some of the buttons are working. And yes the instance name is menu2. Under the signage projects craggs works. It disappears when you click on the button as it loads the swf. It had the code as above attached to it On(release)_root.menu2.gotoAndStop(1).
However Paramount oxford is also working and can't see any added code on it?
Also have a problem with director mc which is a sub menu of management team in under "The company" button. the menu disappears leaving the submenu on its own.......:-(