Use "for-in", not "for-each-in".
Gordon Smith Adobe Flex SDK Team ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of gjessup1 Sent: Tuesday, April 15, 2008 1:27 PM To: [email protected] Subject: [flexcoders] Get Key Value Pair from an Object I have an array of objects that gets returned and handled in an event. Once I determine that I need the values in Array[0]...I need to loop through my Object located at Array[0] and get the key value pairs. I am trying to do this for each(var o:String in myobj) { trace(myobj[o] + ":" + o) } The output of the trace is as follows undefined:0x000000011dc9c59a undefined:44441 undefined:true undefined:0 undefined:2008-04-15 16:23:44 so I have the value, but I can't get the key It should look something like this. TimeStamp:0x000000011dc9c59a Positions:44441 IsEnabled:true Delta:0 Date:2008-04-15 16:23:44 does anyone know how I can get the keys from the object? Thanks

