ActionScript 2.0 组件语言参考 |
|
|
|
| Collection 接口 > Collection.isEmpty() | |||
Flash Player 7。
Flash MX Professional 2004。
collection.isEmpty()
一个布尔值,如果集合为空,则该值为 true。
方法;指明集合是否为空。
以下示例调用 isEmpty():
on (click) {
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
if (myColl.isEmpty()) {
trace("No CDs in the collection");
}
}
//...
|
|
|
|