Install HAXE 3.1.1 since 3.1.3 (latest right now) won't work with OpenFL
- Go to Haxe
- Download Haxe Lib for windows
- Run Installer
- open terminal and try haxe -version
- Create a file named
HelloWorld.hx
- Paste following code
class HelloWorld {
static public function main():Void {
trace("Hello World");
}
}
- at terminal run:
haxe -main HelloWorld --interp
- Compile to other target:
haxe -main HelloWorld -js helloWorld.js