User Guide
148 Collection interface (Flash Professional only)
Method summary for the Collection interface
The following table lists the methods of the Collection interface.
Collection.addItem()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.addItem(item)
Parameters
item The object to be added to the collection. If item is null, it is not added to the
collection.
Returns
A Boolean value of true if the collection was changed as a result of the operation.
Description
Method; adds a new item to the end of the collection.
Method Description
Collection.addItem() Adds a new item to the end of the collection.
Collection.contains() Indicates whether the collection contains the specified
item.
Collection.clear() Removes all elements from the collection.
Collection.getItemAt() Returns an item within the collection by using its index.
Collection.getIterator() Returns an iterator over the elements in the collection.
Collection.getLength() Returns the number of items in the collection.
Collection.isEmpty() Indicates whether the collection is empty.
Collection.removeItem() Removes the specified item from the collection.