F > FListBox.getValue

 

FListBox.getValue

Availability

Flash Player 6.

Usage

myListBox.getValue()

Parameters

None.

Returns

The label or data associated with a selected item.

Description

Method; returns information about the item currently selected in the list box. If the item does not have specified data, this method returns the item's label; if the item has data associated, this method returns the data.

Example

The following code returns the label of the item selected in nationList.

trace(nationList.getValue());

See also

FListBox.getItemAt