ComboBox.removeItemAt()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

listInstance.removeItemAt(index)

Parameters

index A number that indicates the position of the item to remove. This value is zero-based.

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. This is a method of the List component that is available from an instance of the ComboBox component.

Example

The following code removes the item at index position 3:

myCombo.removeItemAt(3); 

See also

ComboBox.removeAll(), ComboBox.replaceItemAt()