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]
<mailto:[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]
<mailto:[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 <http://www.newviewnetworks.com>  

 

 

Reply via email to