> 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.

Reply via email to