What about making the properties protected and extending the class down into
a "reflector" class which is used to spy on it's parents? To get a true copy
of the original, couldn't you also access the protected properties though an
instance of the parent class? I know you can access the private properties
in an instance of the same class, so wouldn't this also be true for the
protected properties of a parent? Just an idea, haven't really tried this
myself.

Regards,
...aaron

On 11/26/07, Mike Morearty <[EMAIL PROTECTED]> wrote:
>
>   Gordon's right -- the debugger's techniques can't be used outside of
> the debugger. Its techniques are completely inaccessible from
> ActionScript.
>
> - Mike Morearty, Adobe Flex Builder team
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Gordon
> Smith" <[EMAIL PROTECTED]> wrote:
> >
> > cc'ing Mike to get the lowdown on this. But I'm pretty sure that
> > whatever the debugger is doing can't be done from ActionScript.
> >
> > - Gordon
> >
> > ________________________________
> >
> > From: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> [mailto:
> flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>] On
> > Behalf Of marty.pitt
> > Sent: Wednesday, November 21, 2007 1:14 PM
> > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>
> > Subject: [flexcoders] Re: Reflection -- Accessing private fields
> >
> >
> >
> > Spoil sports. :)
> >
> > How does the debugger expose the properties and their values? Nothing
> > I can leverage there?
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto:
> flexcoders%40yahoogroups.com>
> > , "Gordon Smith" <gosmith@> wrote:
> > >
> > > I don't believe you can get reflection info about protected or
> > internal
> > > APIs either.
> > >
> > > Gordon Smith
> > > Adobe Flex SDK Team
> > >
> > > ________________________________
> > >
> > > From: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto:
> flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto:
> flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of Alex Harui
> > > Sent: Wednesday, November 21, 2007 11:39 AM
> > > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> <mailto:
> flexcoders%40yahoogroups.com>
> > > Subject: RE: [flexcoders] Reflection -- Accessing private fields
> > >
> > >
> > >
> > > Private is private.
> > >
> > > ________________________________
> > >
> > > From: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto:
> flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com><mailto:
> flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of marty.pitt
> > > Sent: Tuesday, November 20, 2007 9:25 PM
> > > To: flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com> <mailto:
> flexcoders%40yahoogroups.com>
> > > Subject: [flexcoders] Reflection -- Accessing private fields
> > >
> > > Hello all.
> > >
> > > Is there any way to get the names of private / protected / internal
> > > variables within a class at runtime? (ie., actual reflection!)
> > >
> > > It seems it's not possible using getClassInfo().
> > >
> > > What about some sort of custom serialization? (Remembering that the
> > > names of the variables is not known).
> > >
> > > Any thoughts?
> > >
> > > Cheers
> > >
> > > Marty
> > >
> >
>
>  
>



-- 
Aaron Miller
Chief Technology Officer
Splash Labs, LLC.
[EMAIL PROTECTED]  |  206-328-5485
http://www.splashlabs.com

Reply via email to