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");
    }
}
//...