RE: [flexcoders] Reflection -- Accessing private fields

2007-11-21 Thread Alex Harui
Private is private.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marty.pitt
Sent: Tuesday, November 20, 2007 9:25 PM
To: flexcoders@yahoogroups.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

 



RE: [flexcoders] Reflection -- Accessing private fields

2007-11-21 Thread Gordon Smith
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 [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Wednesday, November 21, 2007 11:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Reflection -- Accessing private fields



Private is private.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marty.pitt
Sent: Tuesday, November 20, 2007 9:25 PM
To: flexcoders@yahoogroups.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