User Guide
MenuBar.removeMenuAt() 965
MenuBar.removeMenuAt()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
menuBarInstance.removeMenuAt(index)
Parameters
index The index of the menu to be removed from the menu bar.
Returns
A reference to the menu at the specified index in the menu bar. This value is undefined if
there is no menu in that position in the menu bar.
Description
Method; removes the menu at the specified index. If there is no menu item at that index,
calling this method has no effect. Also, when more than one menu is removed, the index
assignments shift accordingly as each menu is removed.
Example
The following example creates a File menu and an Edit menu on the menu bar. It then calls
removeMenuAt() to remove the menu at position 0, which is the File menu, leaving the
Edit menu.