Hello
I seek correction and guidancem from you experts, on the Associative arrays and the arrays of Generic Objects.
I created the following working code and I believe it is an Associative array:
var arrColors: Array = new Array();
arrColors.push({color: "aqua", code: "0x00FFFF"});
arrColors.push({color: "beige", code: "0xF5F5DC"});
arrColors.push({color: "brown", code: "0xA52A2A"});
// and so on .....
Now, I want to create an array of Generic Objects for the same items, as below:
var obj: Object = new Object();
obj["key"] = "value";
But, I don’t know how to add more than one items in the above array.
Would an expert help, please!