var object:Object = { }; for (var i:int = 0; i < 10; i++) { object["foo" + i] = i; } trace(object["foo5"]); //5