What's not working for you? Did you initialize thisArray to []? And what
is 'key'?
 
But why do you want to create an Array of Objects where the Object key
contains redundant information (i.e., the index of the Object in the
Array)?
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Saturday, September 15, 2007 11:40 PM
To: [email protected]
Subject: [flexcoders] Dynamic Array Object Keys



I finally figured out my issue with my dynamic datagrid columns, and
what not. However, I have run into a new problem with this little
project.

In previous versions of Actionscript, I have been able to create
dynamic array object keys. However in AS3, I am not able to figure out
how to do so. In previous versions of AS the creation of my array
would look something like this. 
for(var i:Number = 0; i<something.length;i++){
thisArray.push({key + i:something[i].thisValue});
}

Anyone know if it is still possible to create dynamic object keys?



 

Reply via email to