在项目用到了HashMap,需要遍历,并取到需要的值。
复制代码 代码如下:
var iterator:Iterator = actImage.toLineMap.entrySet().iterator();
while(iterator.hasNext()) {
var entry:Entry = iterator.next() as Entry;
trace(entry.getValue());
var obj:Object = entry.getValue() as Object;
trace(obj);
FLEX HashMap库包下载
复制代码 代码如下:
var iterator:Iterator = actImage.toLineMap.entrySet().iterator();
while(iterator.hasNext()) {
var entry:Entry = iterator.next() as Entry;
trace(entry.getValue());
var obj:Object = entry.getValue() as Object;
trace(obj);
FLEX HashMap库包下载
本文章来源于网络,作者是:,由代码部落进行采编,如涉及侵权请联系删除!转载请注明出处:https://daimabuluo.cc/flex/1342.html