# Array of Generic Objects - adding data into

**URL:** <https://forum.kirupa.com/t/array-of-generic-objects-adding-data-into/299186>\
**Category:** flash\
**Created:** [October 31, 2009, 8:15am UTC](https://forum.kirupa.com/t/array-of-generic-objects-adding-data-into/299186 "2009-10-31T08:15:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raabi](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@Raabi](https://forum.kirupa.com/u/Raabi)\
**Post date:** [October 31, 2009, 8:15am UTC](https://forum.kirupa.com/t/array-of-generic-objects-adding-data-into/299186/1 "2009-10-31T08:15:43Z")

</div>

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:

```auto
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:

```auto
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!
