User Guide

Menu component (Flash Professional only) 567
See also
Menu.setMenuItemSelected()
Menu.setMenuItemSelected()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenu.setMenuItemSelected(item, select)
Parameters
item
An XML node. The target menu items 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.
Description
Method; changes the selected attribute of the item to the state specified by the select
parameter. If this call results in a change of state, the item is redrawn with the new state. This is
only meaningful for items whose
type attribute is set to "radio" or "check", because it causes
their dot or check to appear or disappear. If you call this method on an item whose type is
"normal" or "separator", it has no effect.
Example
The following example deselects the second child of myMenu:
var myItem = myMenu.getMenuItemAt(1);
myMenu.setMenuItemSelected(myItem, false);
Menu.show()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenu.show(x, y)