List.getItemAt()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.getItemAt(index)

Parameters

index A number greater than or equal to 0, and less than List.length. The index of the item to retrieve.

Returns

The indexed item object. Undefined if index is out of range.

Description

Method; retrieves the item at a specified index.

Example

The following code displays the label of the item at index position 4:

trace(myList.getItemAt(4).label);