User Guide
902 Menu component (Flash Professional only)
Method summary for the Menu class
The following table lists methods of the Menu class.
Methods inherited from the UIObject class
The following table lists the methods the Menu class inherits from the UIObject class. When
calling these methods from the Menu object, use the form
MenuInstance.methodName.
Method Description
Menu.addMenuItem() Adds a menu item to the menu.
Menu.addMenuItemAt() Adds a menu item to the menu at a specific location.
Menu.createMenu() Creates an instance of the Menu class. This is a static
method.
Menu.getMenuItemAt() Gets a reference to a menu item at a specified location.
Menu.hide() Closes a menu.
Menu.indexOf() Returns the index of a given menu item.
Menu.removeAll() Removes all items from a menu.
Menu.removeMenuItem() Removes the specified menu item.
Menu.removeMenuItemAt() Removes a menu item from a menu at a specified location.
Menu.setMenuItemEnabled() Indicates whether a menu item is enabled (true) or not
(
false).
Menu.setMenuItemSelected() Indicates whether a menu item is selected (true) or not
(
false).
Menu.show() Opens a menu at a specific location or at its previous
location.
Method Description
UIObject.createClassObject() Creates an object on the specified class.
UIObject.createObject() Creates a subobject on an object.
UIObject.destroyObject() Destroys a component instance.
UIObject.doLater() Calls a function when parameters have been set in the
Property and Component inspectors.
UIObject.getStyle() Gets the style property from the style declaration or object.
UIObject.invalidate() Marks the object so it is redrawn on the next frame interval.
UIObject.move() Moves the object to the requested position.