F > FComboBox.removeItemAt |  |

FComboBox.removeItemAt

FComboBox, FComboBox.removeItemAt, removeItemAt

Availability

Flash Player 6.

Usage

    myComboBox.removeItemAt(index)

Parameters

`index` An integer specifying the index of the item to remove.

Returns

An object that contains the removed item.

Description

Method; returns the item removed at the specified index and updates the list. When an item is removed from the list, the indexes of the subsequent items are updated to reflect their new positions in the list. If no item exists at the specified index, this method returns `undefined`.

The ComboBox component uses a zero-based index, where the item at index 0 is displayed at the top of the list.

Example

The following code removes the fifth item from the list in `menuMain`.

    menuMain.removeItemAt(4);

See also

`FComboBox.removeAll`