PDA

View Full Version : drop down menu help please!!!!



REfL3ct
09-07-2004, 01:27 PM
can someone please help me here?

for some reason flash doesnt like playing two movie clips at a time when there is action scripting involved.

i have a menu and when you rollover Button1 the sub menu drops down for it. it works fine until i put my mouse over one of the buttons on the sub menu. and the sub menu automatically falls (play head automatically goes to next frame and finishes the movie clip) the sub menu also has its own MC rollover effect which i think is the problem. is there a way to fix that prob?

please help!!

NTD
09-07-2004, 07:27 PM
Hi,

It sounds as though you can either control the movieclips with variables and call a function when the variables are true, or maybe create a rollOut for the button that tells it to stay where it is as long as the sub menu is open. Hard to say without seeing a code demo.

NTD

REfL3ct
09-12-2004, 01:29 PM
hi NTD

thanks for your reply.

i got it here to download if ya want.

www.visualreign.com/menu/menu.fla

check it out for yourself. i know its got to do with variables and stuff. but i dont know how to use them in this case.

thanks for your help

NTD
09-12-2004, 08:04 PM
Unexpected file format.......

I only have flash MX

REfL3ct
09-13-2004, 12:39 AM
ok well i have the swf running here

http://www.prmarketing.com.au/top/menu.htm

check it out and you'll see what i mean.

thanks bro

NTD
09-13-2004, 06:09 AM
Hi,

I would need to see how you have things set up or the code you are using to esablish the opening of the sub menu. It appears that what you need is an onRollOver code to set a variable to open the menu, then onRollOut of the sub menu or the button menu to close it. If you save your file as MX I can view it. Flash is not backward compatable but it is forward. Flash MX 2004 has the ability to save the file as an MX version.

In theory,


_root.myButton.onRollOver = function() {
_root.subMenu.open = true;
if (_root.submenu.open == true) {
_root.subMenu.gotoAndPlay('open');
_root.subMenu.onRollOut = function() {
_root.subMenu.gotoAndPlay('close');
}
}
}


Hope it helps
NTD

REfL3ct
09-14-2004, 12:47 PM
ahh cool thanks!!

and yeah.... LOL i didnt think to save the file as an mx version (silly me)

ok first i will try your code and if it dont work i will put up an early version of that file

thanks heaps