# Pushing to an array with multiple properties (Not sure of correct term...)

**URL:** <https://forum.kirupa.com/t/pushing-to-an-array-with-multiple-properties-not-sure-of-correct-term/328812>\
**Category:** flash\
**Created:** [June 19, 2012, 3:03pm UTC](https://forum.kirupa.com/t/pushing-to-an-array-with-multiple-properties-not-sure-of-correct-term/328812 "2012-06-19T15:03:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tedri\_Mark](https://avatars.discourse-cdn.com/v4/letter/t/51bf81/32.png) [@Tedri\_Mark](https://forum.kirupa.com/u/Tedri_Mark)\
**Post date:** [June 19, 2012, 3:03pm UTC](https://forum.kirupa.com/t/pushing-to-an-array-with-multiple-properties-not-sure-of-correct-term/328812/1 "2012-06-19T15:03:03Z")

</div>

Hi, I have an array with a number of properties, and I want to push a number of items to it.

Currently I can do:

```auto
objArray.push ( { path:"assets/bikeobj/constants/alumConstantsLOW.obj",
                                    container:alumConstantsContainer,
                                    material:alumMaterial,
                                    component:null
                            });

```

and that will give me the right result ie tracing objArray[0].path gives “assets/bikeobj…” etc

But I have a number of groups of data that I want to push like this, I thought I might be able to do

```auto
objArray.push ( [{ path:"assets/bikeobj/constants/alumConstantsLOW.obj",
                                    container:alumConstantsContainer,
                                    material:alumMaterial,
                                    component:null
                            }], 
[{ path:"assets/bikeobj/constants/alumConstants2.obj",
                                     container:alumConstantsContainer,
                                     material:alumMaterial,
                                     component:null
                             }]
);

```

but this results in all the nodes of the array being undefined.

Also, what is the correct term for the type of array that I am using here?
