随笔-75  评论-193  文章-5  trackbacks-0
1、查找数组中的元素可以使用ascb.util.ArrayUtilities中的findMatchIndex()、findLastMatchIndex()、findMatchIndices()方法,具体参考API。

2、使用splice()方法可以移除数组中间的元素,使用pop()方法移除数组的最后一个元素,使用shift()方法移除数组的第一个元素。也可以使用splice()方法向数组中增加元素。

3、将数组转化为String,可以使用join()方法。
例:
var letters:Array = ["a", "b", "c"];
trace(letters.join());   // Displays: a,b,c
posted on 2007-01-16 22:35 The Matrix 阅读(746) 评论(0)  编辑  收藏 所属分类: Flex

只有注册用户登录后才能发表评论。


网站导航: