I have looked through the tutorials on flash and searched many times on how to add the menu to the menu bar using the components in flash from the components menu. If someone could help me it would be greatly appreciated. Add me on msn if you wish.
youkickmydog1@hotmail.com
Components
Started by Hip Hop Artist, Aug 02 2006 11:52 PM
2 replies to this topic
#1
Posted 02 August 2006 - 11:52 PM
#2
Posted 03 August 2006 - 01:59 AM
not completely sure about it, but the menu & menu bar components must be added throug actionscript, there is a quite neat book about components called
"Actionscript 2.0 Garage" which explains how to use all of the components.
Alternatively if you can spend 2$ you can access the menubar tutorial over at http://www.communitymx.com
"Actionscript 2.0 Garage" which explains how to use all of the components.
Alternatively if you can spend 2$ you can access the menubar tutorial over at http://www.communitymx.com
#3
Posted 03 August 2006 - 01:34 PM
Actionscript is the way to go.
You can code the menu list within your flash file, or load the menu in from an xml file.
This should help you get started:
menuhelp.gif 55.81K
153 downloads
If you select the stage, then type that first line of actionscript into the Actions box, you can right click the word Menu and View Help.
Help for the Menu component will come up, which gives you guidance on what you can do with Menus.
Here is the code so you don't have to retype it:
You can code the menu list within your flash file, or load the menu in from an xml file.
This should help you get started:
If you select the stage, then type that first line of actionscript into the Actions box, you can right click the word Menu and View Help.
Help for the Menu component will come up, which gives you guidance on what you can do with Menus.
Here is the code so you don't have to retype it:
import mx.controls.Menu;
// Create the Menu objects.
var myMenu:Menu = Menu.createMenu();
myMenu.addMenuItem({label:"1st Item"});
myMenu.addMenuItem({label:"second Item"});
myMenu.show(22, 150);
Edited by bezz, 03 August 2006 - 01:35 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
