MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 584

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

Advertisement

MenuBar.getMenuAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuBar.getMenuAt(index)
Parameters
An integer indicating the position of the menu.
index
Returns
A reference to the menu at the specified index. This value is
that position.
Description
Method; returns a reference to the menu at the specified index.
Example
Because
getMenuAt()
index. In the following example, after using the Labels authoring parameter to create the menu
activators File, Edit, and View, the following code adds New and Open items to the File menu at
runtime:
menu = myMenuBar.getMenuAt(0);
menu.addMenuItem({label:"New",instanceName:"newInst"});
menu.addMenuItem({label:"Open",instanceName:"openInst"});
MenuBar.getMenuEnabledAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuBar.getMenuEnabledAt(index)
Parameters
The index of the menu in the menu bar.
index
Returns
A Boolean value that indicates whether this menu can be chosen (
584
Chapter 6: Components Dictionary
returns an instance, it is possible to add items to a menu at the specified
if there is no menu at
undefined
) or not (
true
false
).

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents