我有一个这样的数组
var records:Object = {};
var arr:Array = [
records["nh"] = { medinc:66303},
records["ct"] = { medinc:65958},
records["nj"] = { medinc:65173},
records["md"] = { medinc:64596},
records["kk"] = { medinc:61321}
];
arr.sortOn("medinc", Array.NUMERIC);
我对数组进行了数字排序。我的问题是如何从每条记录中获取数值?我想使用该值来设置不同影片剪辑的宽度。
就像是
object1.width=(record for the [0] position in the array)
object2.width=(record for the [1] position in the array)
object3.width=(record for the [2] position in the array)
ETC...
我希望这足够清楚。谢谢你的帮助!