Example
The following example calls
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
var itr:mx.utils.Iterator = myColl.getIterator();
while (itr.hasNext()) {
var cd:CompactDisc = CompactDisc(itr.next());
var title:String = cd.Title;
var artist:String = cd.Artist;
if(myColl.contains(cd)) {
trace("myColl contains " + title);
}
else {
trace("myColl does not contain " + title);
}
}
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
on (click) {
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
myColl.clear();
}
:
contains()
:
clear()
Collection interface (Flash Professional only)
171
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?