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 will need to run the following commands to finish your install:
Linux users: The versions of Haxe and Neko distributed on Linux package repositories can be old, or experience other issues after the install, so we recommend that you use the above install script instead.
With the latest versions of Haxe and Neko installed, open a command-prompt (Windows) or terminal (macOS/Linux) and run these commands:
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: