User Guide
572 Chapter 6: Components Dictionary
Description
Method; returns the index of the specified menu item in this parent menu item.
Any node or menu item in a MenuDataProvider instance can call the methods of the
MenuDataProvider class.
Example
The following example adds a menu item to a parent item and gets the item’s index:
var myMenuItem = myParentMenuItem.addMenuItem({label:"That item"});
var myIndex = myParentMenuItem.indexOf(myItem);
MenuDataProvider.removeMenuItem()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuDataProvider.removeMenuItem()
Parameters
None.
Returns
A reference to the removed Menu item (XML node); undefined if an error occurs.
Description
Method; removes the target item and any child nodes.
Any node or menu item in a MenuDataProvider instance can call the methods of the
MenuDataProvider class.
Example
The following example removes myMenuItem from its parent:
myMenuItem.removeMenuItem();
MenuDataProvider.removeMenuItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuDataProvider.removeMenuItemAt(index)