You can't. ObjectUtil.toString() will only trace out the public properties, there is no way to get access to private properties. If ObjectUtil.toString() is showing you the values you wish to use, then they are public. You can use describeType(obj) to see more detailed information about an object, but again, no access to private properties.
This is generally a good thing, but in your case, if there's something the API doesn't allow you to do, your best bet is to contact the creators of the API. -Nick On Nov 20, 3:01 pm, jakemiles <[email protected]> wrote: > Hi all. I'm using a black-box api object, and ObjectUtil.toString() > shows me that it contains a piece of information I need, but doesn't > provide a public accessor for it. So I want to know how > ObjectUtil.toString() obtains the value, because I'd like to do the > same thing. > > How do you use reflection in Actionscript 3 to obtain the value of an > instance variable that isn't public and doesn't have a public > accessor? > > I know some will object to this practice, as it violates > encapsulation. We can debate that once I meet my deadline, but right > now I just need to know how it's accomplished in Actionscript 3. > > - Jake -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=.

