User Guide

892 Menu component (Flash Professional only)
You should treat the instanceName, groupName, and type attributes of a menu item as read-
only. You should set them only while creating an item (for example, in a call to
addMenuItem()). Modifying these attributes after creation may produce
unpredictable results.
Menu parameters (Flash Professional
only)
You can set the following authoring parameter for each Menu component instance in the
Property inspector:
rowHeight indicates the height of each row, in pixels. Changing the font size does not change
the row height. The default value is 20.
You can write ActionScript to control the Menu component using its properties, methods,
and events. For more information, see “Menu class (Flash Professional only)” on page 901.
Creating an application with the Menu
component (Flash Professional only)
In the following example, a developer is building an application and uses the Menu
component to expose some of the commands that users can issue, such as Open, Close,
and Save.
To create an application with the Menu component:
1. Select File > New and create a Flash document.
2. Drag the Menu component from the Components panel to the library.
Menus are created dynamically through ActionScript.
3. Drag a Button component from the Components panel to the library.
The button will be used to activate the menu.