AFAIK, it is too late for FP10. There may already be an enhancement request for FP11, but iif not, feel free to file one.
Today, you can load the SWF as bytes, unpack the SWF and get the list of classes, then loadbytes the 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. From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Tuesday, August 26, 2008 3:34 PM To: [email protected] Subject: Re: [flexcoders] Get all class definitions in a loaded swf ? > There is no way to find out the classes in a SWF (not without a lot of > work). Really? That's very disappointing. The information is there (the Player finds it, obviously), and is *far* easier for the Player to grab than whatever hoops I'd have to jump through... kinda feels like a hole that needs to be filled. Any chance the API for Flash 10 could be updated to include this? Just curious, what would be the "lot of work"? Do you mean I'd basically have to parse the SWF's bytecode to grab the info? > Best option is to put something in each SWF that describes what is > in it. You will probably always have to use getDefinition though I've done this in the past... I had hoped there was a better path I had just been too lazy to find. Another route I've taken for SWFs generated by the Flash IDE is to have a "known" MovieClip (or the stage) contain instances of the classes I'm looking for and then just do a reverse look-up on the children... Damn, that seems like I'm doing a *lot* of work that would be incredibly trivial for the Player to do natively (and in fact, must already do to some degree). What a shame... Troy.

