ActionScript 2.0 Components Language Reference |
|
|
|
| Menu component > Using the Menu component > About menu item XML attributes | |||
The attributes of a menu item XML element determine what is displayed, how the menu item behaves, and how it is exposed to ActionScript. The following table describes the attributes of an XML menu item:
|
Attribute name |
Type |
Default |
Description |
|---|---|---|---|
label
|
String |
undefined
|
The text that is displayed to represent a menu item. This attribute is required for all item types, except |
type
|
|
undefined
|
The type of menu item: |
icon
|
String |
undefined
|
The linkage identifier of an image asset. This attribute is not required and is not available for the |
instanceName
|
String |
undefined
|
An identifier that you can use to reference the menu item instance from the root menu instance. For example, a menu item named yellow can be referenced as |
groupName
|
String |
undefined
|
An identifier that you can use to associate several radio button items in a radio group, and to expose the state of a radio group from the root menu instance. For example, a radio group named colors can be referenced as |
selected
|
A Boolean value ( |
false
|
A Boolean or string value indicating whether a |
enabled
|
A Boolean value ( |
true
|
A Boolean or string value indicating whether this menu item can be selected ( |
|
|
|
|