richiemartin
Technical User
Hi, I am extremely new to Flash and need some assistance with creating a menu bar with drop down menus. I am using Flash MX2004 pro and so using the MenuBar component from the ‘Components’ window. I have dragged the menu bar onto the page and added the following code:
menu = myMenuBar.addMenu("Modules");
menu.addMenuItem({label:"Buffering", instanceName:"BufferingInstance"});
menu.addMenuItem({label:"Spatial Analysis", instanceName:"SAInstance"});
menu.addMenuItem({label:"Interpolation", instanceName:"InterpolationInstance"});
menu = myMenuBar.addMenu("Questionnaire");
menu = myMenuBar.addMenu("Chatroom");
However, I have now tried numerous bits of code to activate the buttons when selected but to no avail. For example, when the ‘Questionnaire’ button is selected, I would like to go to another flash movie.
Any help would be much appreciated
rich
menu = myMenuBar.addMenu("Modules");
menu.addMenuItem({label:"Buffering", instanceName:"BufferingInstance"});
menu.addMenuItem({label:"Spatial Analysis", instanceName:"SAInstance"});
menu.addMenuItem({label:"Interpolation", instanceName:"InterpolationInstance"});
menu = myMenuBar.addMenu("Questionnaire");
menu = myMenuBar.addMenu("Chatroom");
However, I have now tried numerous bits of code to activate the buttons when selected but to no avail. For example, when the ‘Questionnaire’ button is selected, I would like to go to another flash movie.
Any help would be much appreciated
rich