User Guide
934 Menu component (Flash Professional only)
Method summary for the MenuDataProvider class
The following table lists the methods of the MenuDataProvider class.
MenuDataProvider.addMenuItem()
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
myMenuDataProvider.addMenuItem(initObject)
Usage 2:
myMenuDataProvider.addMenuItem(childMenuItem)
Parameters
initObject An object containing the attributes that initialize a Menu item’s attributes. For
more information, see “About menu item XML attributes” on page 887.
childMenuItem An XML node.
Returns
A reference to an XMLNode object.
Method Description
MenuDataProvider.addMenuItem() Adds a child item.
MenuDataProvider.addMenuItemAt() Adds a child item at a specified location.
MenuDataProvider.getMenuItemAt() Gets a reference to a menu item at a specified
location.
MenuDataProvider.indexOf() Returns the index of a specified menu item.
MenuDataProvider.removeMenuItem() Removes a menu item.
MenuDataProvider.removeMenuItemAt() Removes a menu item at a specified location.