Downloads

Download OpenFL

OpenFL is a cross-platform library that supports multiple programming languages. For every target OpenFL supports, including native C++, use Haxelib (option 1). For browser-only projects, npm (option 2) also lets you use JavaScript or TypeScript.

Option 1 · Recommended

Haxelib

OpenFL is available on Haxelib and supports HTML5, native desktop, mobile, AIR and Flash targets, all from one toolset using the Haxe language.

1. Install Haxe

Install Haxe globally, and make sure Haxe and Neko are up to date.

2. Install OpenFL

haxelib install openfl
haxelib run openfl setup

Check the installation:

openfl

3. Run a sample

List the available samples, then build one:

openfl create
openfl create DisplayingABitmap
cd DisplayingABitmap
openfl test html5

Next steps

Choose a code editor orbuild your first project.

Option 2 · Web only

npm

For web-only projects, OpenFL is also on npm. This supports TypeScript, ES6/ES5 JavaScript and Haxe, but not native desktop or mobile builds.

1. Install Node.js

Install Node.js and npm.

2. Install the generator

npm install -g yo generator-openfl

3. Create and run a project

mkdir NewProject
cd NewProject
yo openfl

Run a sample

Pick a sample project for your language:

git clone https://github.com/openfl/openfl-samples-ts
cd openfl-samples-ts/features/display/DisplayingABitmap
npm install
npm start

Next steps

We recommend Visual Studio Code for npm-based OpenFL projects.

Need help?

If you run into trouble installing OpenFL, the community is here to help.