0
我有這樣如何從as3中的數組中獲取數值?
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)
等等
我希望這是非常明顯的。謝謝你的幫助!
trace(arr [0] .medinc);也應該工作 –