ActionScript 2.0 Components Language Reference |
|
|
|
| Collection interface > Collection.isEmpty() | |||
Flash Player 7.
Flash MX Professional 2004.
collection.isEmpty()
A Boolean value of true if the collection is empty.
Method; indicates whether the collection is empty.
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");
}
}
//...
|
|
|
|