Lately I have been getting into associative arrays and quickly found out that there doesn’t seem to be a way to loop through one, for example:
var myArray:Array = new Array();
myArray['constructor_stage'] = new Array(0xFFFF00,100,200,"Level1");
myArray['engineering_stage'] = new Array(0xFF0000,440,550,"Level3");
normaly you would do something like this, of course it doesn’t work:
for(var i:int = 0; i < myArray.length; i++){}
I went to live docs and they said to use the object class, so is there a way to loop through an object data properties:
var dataObject:Object = {player1:{userName:"theUserName",password:"thePassword"},player2:{"theUserName",password:"thePassword"}}