ComboBox.replaceItemAt()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

comboBoxInstance.replaceItemAt(index, label[, data])

Parameters

index A number 0 or greater that indicates the position at which to insert the item (the index of the new item).

label A string that indicates the label for the new item.

data The data for the item. This parameter is optional.

Returns

Nothing.

Description

Method; replaces the content of the item at the index specified by the index parameter. This is a method of the List component that is available from the ComboBox component.

Example

The following example changes the third index position:

myCombo.replaceItemAt(3, "new label");

See also

ComboBox.removeAll(), ComboBox.removeItemAt()