E-merald web-engineering Flash components
E-merald web-engineering Contact Site map
 
Home Components Support Purchase
Components

ActionScript Methods

InheritanceMovieClip > 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.

Method Description
AccordionTreeMenu.getItemAt() Gets a reference to a menu item at a specified location.
AccordionTreeMenu.setItemSelected() Determines the index position of the menu item to be selected and changes the current selection.

AccordionTreeMenu.getItemAt()

Usage

my_menu.getItemAt(index)

Parameters

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.

Returns

A reference to the specified node.

Description

Method; returns a reference to the specified child node of the menu.

Example

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;


AccordionTreeMenu.setItemSelected()

Usage

my_menu.setItemSelected(index)

Parameters

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.

Returns

Nothing.

Description

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.

Example

The following example sets the index of the menu item to be selected to 10:

my_menu.setItemSelected(10);


© E-MERALD. All rights reserved.
© Designed by Fox.net.ua.