User Guide
Menu component (Flash Professional only) 571
MenuDataProvider.getMenuItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuDataProvider.getMenuItemAt(index)
Parameters
index
An integer indicating the position of the menu.
Returns
A reference to the specified XML node.
Description
Method; returns a reference to the specified child menu item of the current menu item.
Any node or menu item in a MenuDataProvider instance can call the methods of the
MenuDataProvider class.
Example
The following example finds the node you want to get, and then gets the second child of
myMenuItem:
var myMenuItem = myMenuDP.firstChild.firstChild;
myMenuItem.getMenuItemAt(1);
MenuDataProvider.indexOf()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenuDataProvider.indexOf(item)
Parameters
item
A reference to the XML node that describes the menu item.
Returns
The index of the specified menu item; returns undefined if the item does not belong to
this menu.