User Guide
154 Collection interface (Flash Professional only)
Description
Method; indicates whether the collection is empty.
Example
The following example calls isEmpty():
on (click) {
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
if (myColl.isEmpty()) {
trace("No CDs in the collection");
}
}
//...
Collection.removeItem()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.removeItem(item)
Parameters
item The object to be removed from the collection.
Returns
A Boolean value of true if item was removed successfully.
Description
Method; removes the specified item from the collection. Because Collection.removeItem()
dynamically reduces the size of the collection, do not call this method while looping through
an iterator.