我有一個對象數組。我想要做的是獲取屬性等於某個值的對象的最後一個索引。AS3數組對象過濾問題
例:
// this occurs on a mouse click
var stockObj:Object = new Object();
stockObj.ID = "an_id";
stockObj.category = "a_category";
array.push(stockObj);
//psuedo
trace(array.lastIndexOf(stockObj.category=="a_category"));
謹以此跟蹤其category
財產上的繩子等於"a_category"