I wrote a new class called hash. It basically brings the functionality of an array to an object so you can used name indexes. Kinda like the dictionary class but better. Check the sample code.
Code:
import com.infinity.lib.Hash;
var test = new Hash({name: 'test', selectable: false, visible: false, scaleX: 1, scaleY: 1});
test.merge({x: 100, y: 100, width: 400, height: 400, visible: true, name: 'poopie'})
var result = test.reject(function(key,value){
return value > 10;
})
trace(result.toS)