User Guide
586 Chapter 6: Components Dictionary
Example
The following example of a label function builds and returns a custom label from the node
attributes:
myMenuBar.labelFunction = function(node){
var a = node.attributes;
return "The Price for " + a.name + " is " + a.price;
};
MenuBar.removeMenuAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuBar.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.
Example
The following example removes the menu at index 4:
myMenuBar.removeMenuAt(4);
MenuBar.setMenuEnabledAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuBar.setMenuEnabledAt(index, boolean)
Parameters
index
The index of the menu item to set in the MenuBar instance.