MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 578

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

MenuBar class (Flash Professional only)
Inheritance
MovieClip >
ActionScript Class Name
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.
Method
MenuBar.addMenu()
MenuBar.addMenuAt()
MenuBar.getMenuAt()
MenuBar.getMenuEnabledAt()
MenuBar.removeMenuAt()
MenuBar.setMenuEnabledAt()
Methods inherited from the UIObject class
The following table lists the methods the MenuBar class inherits from the UIObject class. When
calling these methods from the MenuBar object, use the form
Method
UIObject.createClassObject()
UIObject.createObject()
UIObject.destroyObject()
UIObject.doLater()
UIObject.getStyle()
UIObject.invalidate()
UIObject.move()
UIObject.redraw()
UIObject.setSize()
UIObject.setSkin()
UIObject.setStyle()
578
Chapter 6: Components Dictionary
UIObject class
>
UIComponent class
mx.controls.MenuBar
Description
Adds a menu to the menu bar.
Adds a menu at a specified location to the menu bar.
Gets a reference to a menu at a specified location.
Returns a Boolean value indicating whether a menu is enabled
(
) or not (
true
false
Removes a menu at a specified location from a menu bar.
A Boolean value indicating whether a menu is can be chosen (
or not (
).
false
Description
Creates an object on the specified class.
Creates a subobject on an object.
Destroys a component instance.
Calls a function when parameters have been set in the Property and
Component inspectors.
Gets the style property from the style declaration or object.
Marks the object so it will be redrawn on the next frame interval.
Moves the object to the requested position.
Forces validation of the object so it is drawn in the current frame.
Resizes the object to the requested size.
Sets a skin in the object.
Sets the style property on the style declaration or object.
> MenuBar
).
MenuBar.methodName
)
true
.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents