Hi Roland, i'm hoping im not driving you crazy with my wining about the modules contexts with custom classes 
Ok I think i can prove there is a bug in the reflection handling.
First of all, the reason that your original project works is that you do not define and retreive a custom class fom a module context. That's why i send you the modified version.
That you original project doesnt work in flash builder 4 is weird, but including the next line fixes that:
Code:
import org.springextensions.actionscript.module.ISASModule; ISASModule;
that is really the only IDE problem, but the rest is working fine.
Now i created build files for my project and guess..... same problem 
the project is too big to attach here so i placed it online:
http://www.artim-interactive.nl/arno...module_sas.zip
follow the next steps:
import it in flex builder 3 and build it with the ide.
you will get a run time....
now uncomment the next lines in application.mxml
Code:
/* import org.springextensions.actionscript.module.ISASModule; ISASModule;
import classes.ModuleClassImpl; ModuleClassImpl; */
build / run again from the IDE and you will see that the app works. The conclusion that can be drawn from this is that the module doesn't look up custom classes in it's own application
domain but directly looks in the root application domain. This MUST be the problem
Now to prove this has nothing to do with the ide: Lets do ant now:
put the next to lines in application.mxml in comments again
Code:
/* import org.springextensions.actionscript.module.ISASModule; ISASModule;
import classes.ModuleClassImpl; ModuleClassImpl; */
open your shell, go to the project root.
run ant -f flex2ant-build.xml
after done open application.html in bin-debug. the module information doesn't show, right?
uncomment the next to lines (i know it gets repetitive
)
Code:
/* import org.springextensions.actionscript.module.ISASModule; ISASModule;
import classes.ModuleClassImpl; ModuleClassImpl; */
open your shell, go to the project root.
run ant -f flex2ant-build.xml
after done open application.html.
and now it works, the same behavior as flash builder and flex builder.
to me it's definitely a reflection / application domain problem.
Application domains are really a more complex thing than a first sight and with modules thing get even more unclear. I recently have done some investigation for the project i'm working on and i really am the more convinced the problem lies in this area.
hope this gives a good start point for investigating the problem further.
cheers,
Arnoud
NB if you have problems running the ant target uncomment the next line in your flex-config.xml:
Code:
<local-fonts-snapshot>localFonts.ser</local-fonts-snapshot>