ActionScript 2.0 组件语言参考 |
|
|
|
| Collection 接口 > Collection.getLength() | |||
Flash Player 7。
Flash MX Professional 2004。
collection.getLength()
集合中的项数。
方法:返回集合中的项目数。
下面的示例调用 getLength():
//...
var myColl:mx.utils.Collection;
myColl = _parent.thisShelf.MyCompactDiscs;
trace ("Collection size is: " + myColl.getLength());
//...
|
|
|
|