F > FListBox.removeItemAt |
![]() ![]() ![]() |
FListBox.removeItemAt
Availability
Flash Player 6.
Usage
myListBox
.removeItemAt(
index
)
Parameters
index
An integer specifying the index of the item to remove.
Returns
Nothing or undefined
.
Description
Method; removes the item at the specified index, updates the indexes of the list items following the removed item to reflect their new positions in the list, and then updates the list box and resizes the scroll bar. If no item exists at the specified index, this method returns undefined
.
The ListBox 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 in the list from wishList
.
wishList
.removeItemAt(4);
See also
![]() ![]() ![]() |