User Guide
List component 473
List.removeAll()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.removeAll()
Parameters
None.
Returns
Nothing.
Description
Method; removes all items in the list.
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 clears the list:
myList.removeAll();
List.removeItemAt()
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
listInstance.removeItemAt(index)
Parameters
index
A string that indicates the label for the new item. The value must be greater than 0 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 specified index
collapse by one.