List.selectedItem

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.selectedItem

Description

Property (read-only); an item object in a single-selection list. (In a multiple-selection list with multiple items selected, selectedItem returns the item that was most recently selected.) If there is no selection, the value is undefined.

Example

This example displays the selected label:

trace(myList.selectedItem.label); 

See also

List.selectedIndex, List.selectedIndices, List.selectedItems