You could submit a patch to mxmlc, adding a compiler option that
autogenerates code that returns an Array of classes that got linked into
the SWF.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Tuesday, August 26, 2008 4:11 PM
To: [email protected]
Subject: Re: [flexcoders] Get all class definitions in a loaded swf ?

 

> I think it will always be more efficient to do the legwork and put
> descriptions in the SWFs. Introspection/Reflection APIs generally
aren't
> fast.

Reflection APIs generally aren't fast because they're written in the
same language (or run in the same machine, virtual or otherwise) as
the code they're reflecting on. For a *virtual* machine, the host
(i.e. Flash Player) already has to do the minimum reflection work of
getting class names from the SWF before your bytecode is even
executed...

Troy.

 

Reply via email to