Howto examine loaded SWF file classes
I got into an issue how to problematically examine all classes loaded into my SWF file. After some search it occurred that unfortunately there is not an easy way yet. Good news is that I found two libraries available that can do what I was looking for, below you can find links:
http://www.bytearray.org/?p=175
http://etcs.ru/pre/getDefinitionNamesSource/
BTW: I will be lobbying my colleagues at Adobe to add this in the future releases


this (among many others) can also be done with this swf reading class http://swfutils.riaforge.org/
Mateusz
19 Sep 08 at 5:30 pm
Mateusz, thank you for pointing me to it, I will give it a try soon with a project that I’m just starting.
p.
Piotr
19 Sep 08 at 9:58 pm
swfutil’s getDefinitions method returns an array of linkaged classes (using just SymbolClass tag), not all classes, which available in swf. Same simple method used in SWFExplorer too. But, getDefinitionNames parses the DoABC tag and returns all class names, not only linked.
I’m planning to add “onlyLinked” feature to getDefinitionNames method, if you want to use only linked classes.
etc
20 Sep 08 at 8:29 pm