411 REFERENCE · Wikibooks
Haxe Programming/Basic
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Target Platforms
Below is a list of all of the platforms Haxe supports:
+ Targets Name Flash Neko JavaScript ActionScript 3 PHP C++ Java C# Python
"Hello, World!"
First off, we are going to write a "Hello, World!" program.
This way of printing applies to all targets.
class Hello {
static function main() {
trace("Hello, World!");
}
}
This code can then be interpreted by saving the file as Main.hx, then by using the command haxe -main Main --interp in any command-line.