Haxe Programming/Basic
Target Platforms
editBelow is a list of all of the platforms Haxe supports:
Name |
---|
Flash |
Neko |
JavaScript |
ActionScript 3 |
PHP |
C++ |
Java |
C# |
Python |
"Hello, World!"
editFirst 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.