User Guide
MenuBar.addMenu() 955
Events inherited from the UIComponent class
The following table lists the events the MenuBar class inherits from the UIComponent class.
When calling these events from the MenuBar object, use the form
MenuBar.eventName.
MenuBar.addMenu()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
menuBarInstance.addMenu(label)
Usage 2:
menuBarInstance.addMenu(label, menuDataProvider)
Parameters
label A string indicating the label of the new menu.
menuDataProvider An XML or XMLNode instance that describes the menu and its items.
If the value is an XML instance, the instance’s first child is used.
UIObject.resize Broadcast when an object has been resized.
UIObject.reveal Broadcast when an object’s state changes from invisible to
visible.
UIObject.unload Broadcast when the subobjects are being unloaded.
Event Description
UIComponent.focusIn Broadcast when an object receives focus.
UIComponent.focusOut Broadcast when an object loses focus.
UIComponent.keyDown Broadcast when a key is pressed.
UIComponent.keyUp Broadcast when a key is released.
Event Description