Collection.clear()

Availability

Flash Player 7.

Edition

Flash MX Professional 2004.

Usage

collection.clear()

Returns

Nothing.

Description

Method; removes all of the elements from the collection.

Example

The following example calls clear():

on (click) {
    var myColl:mx.utils.Collection;
    myColl = _parent.thisShelf.MyCompactDiscs;
    myColl.clear();
}