Targeting the Flash Platform

Haxe can compile directly to a swf file but can also produce ActionScript source code. Haxe can compile for Flash Players 6 to 11, with either the “old” Flash<8 API (AVM1) or the new AS3/Flash9+ API (AVM2). Haxe offers very good performance and language features to develop Flash content.

Haxe syntax is very similar to ActionScript, but has some added language features and optimizations such as inlining, type inference, enums, typed arrays, generics, and more. If you already know ActionScript then writing Haxe should be easy.

As an open source project Haxe evolves daily, 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.

Haxe vs Flash IDE

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 it's best at (design, generation and arrangement of vector assets and animations), and then hook these assets into your Haxe code which allows for lightning fast code compilation.

  • Shorter compile times
  • Target Flash 8-11 with the same language
  • Integrate with assets created from the Flash IDE

Haxe vs Flex

The Flex compiler (mxmlc) 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 much faster at compiling your source code to a swf file.


Why use Haxe?
Download Haxe
Learn Haxe
Getting started with Flash
Flash Tutorials

version #15191, modified 2012-07-26 16:05:50 by jan_flanders