Reputation: 1028
I'm wondering if there's any reasonable way to get a reference to an object in Flex, and look through everything in every sub object (every property and everything). That is, I want to know if I can completely map all of the data within an object, from another object. I'm aware that this wouldn't work for private (or protected) members, but for anything public, it should be possible, correct?
Upvotes: 1
Views: 227
Reputation: 22604
Use describeType for class instances, and
for (var str:String in obj) { trace (str+":"+obj[str]); }
for simple Objects.
Upvotes: 1