ActionScript Methods
| Inheritance | MovieClip > UIObject class > GlobalMenuPro class |
Methods inherited from the UIObject class
The following table lists the methods the GlobalMenuPro 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 GlobalMenuPro class
The following table lists methods of the GlobalMenuPro 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 the item node with index 5:
my_menu.getItemAt(5).label;
my_menu.getItemAt(5).action;
my_menu.getItemAt(5).url;
my_menu.getItemAt(5).target;
my_menu.getItemAt(5).enabled;
my_menu.getItemAt(5).fontColor; |