First, you will need to install Haxe and Neko. OpenFL uses Haxe to power the build process, and Neko to run the command-line tools. Both are included in the following installers, one for each platform:
macOS users: You need to run the following command to finish your install:
With the latest versions of Haxe and Neko installed, open a command-prompt (Windows) or terminal (macOS/Linux) and run these commands:
haxelib install openfl haxelib run openfl setup
To confirm that OpenFL is installed and working properly, try running the “openfl” command:
Run a Sample
OpenFL includes a set of sample projects, from simple tutorials to more complex demos. This is a good way to confirm that OpenFL is installed properly.
You can use the “openfl create” command for a list of available samples.
For example, here is how to build and run the DisplayingABitmap sample on HTML5:
openfl create DisplayingABitmap cd DisplayingABitmap openfl test html5