In as/flex, Is it possible to find all Classes in a package that implement a certain interface?
views:
100answers:
3
+1
Q:
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
2009-05-29 02:26:18
+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
2009-05-29 04:02:31
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
2009-05-29 20:49:20