views:

100

answers:

3

In as/flex, Is it possible to find all Classes in a package that implement a certain interface?

A: 

for me I will:

search *.as at the package root folder

then use editors like notepad++ to open all of them

and then search for the interface keywords in all files

Unreality
+2  A: 

If you're asking about doing this programmaticly, you can use the flash.utils.describeType to get XML to show you the interfaces a class implements. However, you'd still have to know the name of the classes - because the 'discovering' the classes in a package is not simple.

Gabriel
A: 

Another way is to use the -link-report "outputLinkreport.xml" mxmlc command line option and parse the resulting XML file. This is an offline process.

an0nym0usc0ward