遍历键

?
1
2
3
for(var k:String in obj) {
trace("Key: " + k + " - value: " + obj[k]);
}

遍历值

?
1
2
3
for each(var v:* in obj) {
trace("Value: " + v);
}