RE: [flexcoders] reflection of proerties in an object

2008-07-23 Thread Alex Harui
: flexcoders@yahoogroups.com Subject: [flexcoders] reflection of proerties in an object if I get an object, I want to enumerate the properties. Ex: var object:Object = someClass.someFunc(); var val1:String = object["key1"]; How do I list all the keys in an object? .V

Re: [flexcoders] reflection of proerties in an object

2008-07-23 Thread Scott Bachman
As long as it is in fact an Object you can do for (var key:String in object) { // do something with the key } Scott On Wed, Jul 23, 2008 at 11:07 AM, v.cekvenich <[EMAIL PROTECTED]> wrote: > if I get an object, I want to enumerate the properties. > > Ex: > var object:Object = someClass.so

[flexcoders] reflection of proerties in an object

2008-07-23 Thread v.cekvenich
if I get an object, I want to enumerate the properties. Ex: var object:Object = someClass.someFunc(); var val1:String = object["key1"]; How do I list all the keys in an object? .V