So apparently we were all wrong.  If you use describeType or
ObjectUtils.getClassInfo() you can get to some metadata, but not all
metadata.  Bindable and Transient (which I didn't know existed until a few
minutes ago) are both viewable, however Inspectable is not viewable...except
for the variable "accessibilityImplementation" declared by the
InteractiveObject class.  I'm not really trying to solve my original problem
anymore because I can hijack Transient if I need to, but if anyone knows
what is going on here, the education would be appreciated.

- Dan

On 12/4/06, Alex Harui <[EMAIL PROTECTED]> wrote:

   FlexBuilder parses the bytecode in the SWC.


 ------------------------------

*From:* [email protected] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Daniel Freiman
*Sent:* Monday, December 04, 2006 12:33 PM
*To:* [email protected]
*Subject:* Re: [flexcomponents] Metadata



yeah, i was hoping I wouldn't have to do that.  I found you can find
bindable metatags through code so I was hoping that there would be some
obscure way into other metadata.

thanks you two,

- Dan

On 12/4/06, *Dominick Accattato* <[EMAIL PROTECTED]> wrote:

yeah, sounds like your gonna have to build the metadata object in memory.
You won't have access to the [Inspectable] metadata cause thats used during
compilation.  However, you could create a reflection parsing class that has
builds these in memorey metadata objects.  I would imagine a simple for in
statement and a  switch and some instanceOf or "as" would work.



On 12/4/06, *Daniel Freiman* < [EMAIL PROTECTED]> wrote:

Is there any way to access the Inspectable metatag from actionscript or
create similar meta information (Inspectable just happens to have every
property I want access to)?  Here's why:

Really I'm looking for advanced information from reflection.  I'm creating
a class hierarchy and want users to be able to edit the properties of
instances of those classes at runtime.  I need to build a form to display
all of the properties and the form needs to understand what is the type of
each property in order to display the correct editing control.

Anyone know if this is possible?

Thanks,

- Dan





 --
Dominick Accattato, CTO
New View Networks
www.newviewnetworks.com



Reply via email to