Wow, my first post on Stack Overflow. Have I "arrived"?
Okay, this is an oddball. I'm trying to determine whether there might be some programmatic way to introspect the classes within a linked SWC at runtime.
To give a little more background (maybe there's a completely different way to go about doing this), I'm considering a general framework for Font Embedding. Currently, to embed fonts (using a linked SWC, not the [embed] metatag), you need to embed the font in your SWC using the Flash IDE, and then you need to hard-code a reference to the library asset's Class in your code (possibly being created by someone else, using a different IDE - FlashDevelop for instance).
Now, if it were possible at runtime to introspect the SWC and iterate through the classes it exposes, one could theoretically instantiate/register these fonts programatically without having to know (at compile time) what those fonts might be.
Hence the question: does anyone know of any way to access the SWC as an entity at runtime and introspect its exposed Classes?
As an aside, the rationale for this sort of thing is a simple desire for clean separation of design and application logic responsibilities. It's easy for a Designer to embed the font and author and SWC, and also edit a corresponding external CSS file. It's much more dangerous to count on them to update the hard references to the classes in code, or count on the client not changing their mind about the font usage after the job has been compiled and released.