You can compile a Haxe program to a .swf file. Haxe can compile for Flash Players 6 to 10, with either "old" Flash<8 API or newest AS3/Flash9+ API. Haxe offers very good performance and language features to develop Flash content.
Haxe syntax is very similar to AS2 & AS3, but has some added language features and optimizations such as inlining, type inference, enums, typed arrays, generics, and more. If you know AS2 or 3 writing Haxe should be easy.
As an opensource project, Haxe is fast moving and is rapidly adding many features and optimizations which are missing in the Flash and Flex compilers. It also has the benefit of targeting multiple platforms which enables ActionScript developers to apply their existing skills to a variety of tasks.
The Flash IDE is the perfect tool for creating, animating and arranging vector graphics. It was never intended for larger scale applications (especially code intensive) and compiling a large project can be an arduous process.
You can use Haxe alongside the Flash IDE, allowing Flash to do what its best at (design, generation and arrangement of vector assets and animations), and then hook these assets into your Haxe code to allow for lightning fast code compilation.
- Shorter compile times
- Target Flash 8-10 with the same language
- Integrate with assets created from the Flash IDE
The Flex compiler is a command-line compiler like Haxe. Haxe provides many of the same features as a pure AS3 application compiled with the Flex Compiler. The Haxe compiler allows many more optimizations such as inlining, generics, and alchemy opcodes, which allow for faster applications. The Haxe compiler is also faster to compile.