User Guide
MenuBar class (Flash Professional only) 951
11. Select Control > Test Movie.
MenuBar class (Flash Professional only)
Inheritance MovieClip > UIObject class > UIComponent class > MenuBar
ActionScript Class Name mx.controls.MenuBar
The methods and properties of the MenuBar class let you create a horizontal menu bar with
pop-up menus and commands. These methods and properties complement those of the
Menu class by allowing you to create a clickable interface to show and hide menus that behave
as a group for mouse and keyboard interactivity.
Method summary for the MenuBar class
The following table lists methods of the MenuBar class.
NOTE
The border used to highlight individual items in a MenuBar component is an instance
of ActivatorSkin found in the Flash UI Components 2/Themes/MMDefault/Button
Assets folder. This symbol can be customized to point to a different class to provide
a different border. However, the symbol name cannot be modified, and you cannot
use a different symbol for different MenuBar instances in a single document.
Method Description
MenuBar.addMenu() Adds a menu to the menu bar.
MenuBar.addMenuAt() Adds a menu at a specified location to the menu bar.
MenuBar.getMenuAt() Gets a reference to a menu at a specified location.
MenuBar.getMenuEnabledAt() Returns a Boolean value indicating whether a menu is
enabled (
true) or not (false).
MenuBar.removeMenuAt() Removes a menu at a specified location from a menu bar.
MenuBar.removeAll() Removes all menu items from the menu bar.
MenuBar.setMenuEnabledAt() A Boolean value indicating whether a menu is can be chosen
(
true) or not (false).