ActionScript Methods
| Inheritance | MovieClip > UIObject class > AccordionTreeMenu class |
Methods inherited from the UIObject class
The following table lists the methods the AccordionTreeMenu class inherits from the UIObject class.
| Method |
Description |
| UIObject.getStyle() |
Gets the style property from the style declaration or object. |
| UIObject.move() |
Moves the object to the requested position. |
Methods unique to the AccordionTreeMenu class
The following table lists methods of the AccordionTreeMenu class.
my_menu.getItemAt(index)
index An integer indicating the index of the node in the menu. This is a zero-based index, so 0 retrieves the first item, 1 retrieves the second item, and so on.
A reference to the specified node.
Method; returns a reference to the specified child node of the menu.
The following example demonstrates how to retrieve the values of attributes available for an item node:
my_menu.getItemAt(0).label;
my_menu.getItemAt(0).action;
my_menu.getItemAt(0).url;
my_menu.getItemAt(0).target;
my_menu.getItemAt(0).fontColor;
my_menu.setItemSelected(index)
index An integer indicating the zero-based index of the menu item to be selected. If this parameter is omitted, no item will be selected and the selectedIndex property will be set to the undefined value.
Nothing.
Method; determines the index position of the menu item to be selected and changes the current selection. If you call setItemSelected() method, any current selection is cleared and the indicated item is selected.
The following example sets the index of the menu item to be selected to 10:
my_menu.setItemSelected(10);
|