Arrays - dynamic field names?

Hi,

I need to create dynamic arrays with field names loaded from a database. So, the names for the fields will be always different.

Then, suppose I have the names “product” and “color” to create the following array structure dynamically:

var myarray:Array = new Array;
myarray[0] = ({product:undefined,color:undefined});

But in other ocasion, the names may be say “brand” and “model”, so the array will be:

myarray[0] = ({brand:undefined,model:undefined});

And so on…

How to do that?

PS: Please notice that I am not concerned with the contents of the array, but the field names…

Any clue apreciated!