List.removeItemAt()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.removeItemAt(index)

Parameters

index A string that indicates the label for the new item. A value greater than zero and less than List.length.

Returns

An object; the removed item (undefined if no item exists).

Description

Method; removes the item at the specified index position. The list indices after the index indicated by the index parameter collapse by one.

Calling this method modifies the data provider of the List component. If the data provider is shared with other components, those components will update as well.

Example

The following code removes the item at index position 3:

myList.removeItemAt(3);