May be you can use setter and getter ! This Two method can make you access private properties! But I still agree with Nicholas,only one public access is enough, more wont be a better choice!
Good Luck with you! From Norris 2009.11.23 Guangzhou China 2009/11/22 Nicholas <nbi...@gmail.com> > 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 <jacob.mi...@gmail.com> 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 flex_in...@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=. > > > -- 最重要的是拥有跟随内心与直觉的勇气. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=.