User Guide

List component 479
List.selectedItem
Availability
Flash Player 6 (6.0 79.0).
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
List.selectedItems
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.selectedItems
Description
Property (read-only); an array of the selected item objects. In a multiple-selection list,
selectedItems lets you access the set of items selected as item objects.
Example
The following example retrieves an array of selected item objects:
var myObjArray = myList.selectedItems;
See also
List.selectedIndex
, List.selectedItem, List.selectedIndices