User Guide

174 Chapter 6: Components Dictionary
Collection.isEmpty()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.isEmpty()
Returns
A Boolean value of true if the collection is empty.
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.