[Flash] Is there a way to get the As3 classes exported in a folder?

Something similar to android target…
Is there a way to export not just the .SWF file
but the entire Flash project, with .AS classes and assets?

You can generate as3 code. http://old.haxe.org/doc/compiler . But then, I think, you lose haxe compiler optimisation because haxe code compiles directly into swf bytecode, not in the action script 3.

thanks… i managed to export the classes… but the as3 code seems to be broken or something, since it throws a lot of errors in the default flash classes (not even my classes)