Description
Property; the data source for items in a Menu component.
Menu.dataProvider
source of the menu.
The default value is
Note: All XML or XMLNode instances are automatically given the methods and properties of the
MenuDataProvider class when they are used with the Menu component.
Example
The following example imports an XML file and assigns it to the
var myMenuDP = new XML();
myMenuDP.load("http://myServer.myDomain.com/source.xml");
myMenuDP.onLoad = function(){
myMenuControl.dataProvider = myMenuDP;
}
Menu.getMenuItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myMenu.getMenuItemAt(index)
Parameters
An integer indicating the index of the node in the menu.
index
Returns
A reference to the specified node.
Description
Method; returns a reference to the specified child node of the menu.
Example
The following example gets a reference to the second child node in
into the variable
var myItem = myMenu.getMenuItemAt(1);
is an XML node object. Setting this property replaces the existing data
.
undefined
:
myItem
Menu.dataProvider
myMenu
Menu component (Flash Professional only)
property:
and copies the value
559
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers