User Guide

Collection.isEmpty() 153
Collection.getLength()
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
collection.getLength()
Returns
The number of items in the collection.
Description
Method; returns the number of items in the collection.
Example
The following example calls getLength():
//...
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
trace ("Collection size is: " + myColl.getLength());
//...
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.