User Guide
930 Menu component (Flash Professional only)
// Add the menu items.
menuDP_obj.addMenuItem({label:"1st Item"});
menuDP_obj.addMenuItem({label:"2nd Item"});
// Create the Menu object.
var my_menu:Menu = Menu.createMenu(this, menuDP_obj);
// Select the first menu item and disable it.
var item_obj:Object = my_menu.getMenuItemAt(0);
my_menu.setMenuItemEnabled(item_obj, false);
// Show and position the menu.
my_menu.show(100, 20);
See also
Menu.setMenuItemSelected()
Menu.setMenuItemSelected()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
menuInstance.setMenuItemSelected(item, select)
Parameters
item An XML node. The target menu item’s node in the data provider.
select A Boolean value indicating whether the item is selected (true) or not (false). If
the item is a check box, its check mark is visible or not visible. If a selected item is a radio
button, it becomes the current selection in the radio group.
Returns
Nothing.