OpenFL: Flash and AIR display-list APIs in Haxe, compiled by Lime to native C++, JavaScript and Flash
An open source library for creative expression on the web, desktop, mobile and consoles. Inspired by the classic Flash and AIR APIs.
At a glance
- What is it?
- OpenFL reimplements the classic Flash and AIR APIs in Haxe and leans on Lime for tooling and hxcpp for native builds. This piece covers the platform list, the build commands, the 3D limits and what the repository leaves out.
- Who is it for?
- OpenFL fits developers who already know the Flash display list, or who want one Haxe codebase shipping to HTML5, desktop and mobile with hxcpp native output. It is a poor fit for teams that need a 3D engine, a visual editor or a one line install.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly Haxe, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- openfl/openfl2,179 ★ · +16
| Repository | 2026-10-09 | 2026-11-25 |
|---|---|---|
| openfl/openfl | 2.2k | 2.2k |
16 Stars in the last 47 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Flash and AIR APIs rebuilt in Haxe so old ActionScript habits carry over
OpenFL is an open source library for creative expression on the web, desktop, mobile and consoles, and its API is modelled on the classic Flash and AIR APIs. Code is written in Haxe, a language that compiles to several targets from one codebase. That design choice has a practical consequence: a developer who knows the Flash display list, sprites and bitmap data can read OpenFL code without learning a new rendering model. The repository is written in Haxe, uses the MIT license, and keeps its default branch as develop. The last push landed on 16 October 2026, and the three most recent releases are 9.5.0 on 11 November 2025, 9.5.1 on 17 February 2026 and 9.5.2 on 13 May 2026. Releases come a few months apart, so a fix merged into develop can sit unreleased for a while, and the nightly builds covered below exist for exactly that gap.
Lime does the tooling work and hxcpp does the C++ compiling
OpenFL does not stand alone. It depends on Lime, which supplies the command line tools and the backend support for each platform. For native targets, hxcpp is used automatically by the Lime tools to manage the C++ compilation process and to provide the Haxe standard library for C++. The core components listed for the project are therefore three repositories: openfl, lime and hxcpp. This matters when something breaks, because an error during a native build may originate in Lime or hxcpp rather than in OpenFL's own source, and bug reports have to be routed accordingly. It also matters for version pinning. The Dockerfile in the repository starts from the openfl/lime image, with a LIME_VERSION build argument that defaults to latest, so OpenFL and Lime versions are meant to be chosen together.
Supported platforms stop at eight, and consoles are a community effort
The supported list is iOS, Android, HTML5, Windows, macOS, Linux, Flash and AIR. Consoles sit in a separate category: a community effort has OpenFL running on Switch, Wii U, PlayStation 4, PlayStation 3, PlayStation Vita and Xbox One, and the text adds that additional details on console support will be available in the future. Nobody evaluating a console release can get a build recipe, a licensing note or a compatibility table from the repository. OpenFL is also used in other environments, namely TiVo boxes, Raspberry Pi and Node.js. The distinction between the first list and the other two is the part to read carefully, since only the first is described as currently supported.
openfl test html5 builds, serves and opens the project in one command
The deployment tooling covers building, packaging, installing and running on each target platform. The example given is a single command:
openfl test html5That generates an HTML5 project, starts a local web server and opens the default browser. Swapping the target name is how the same project moves to another platform. Some targets need a standard SDK first, such as Visual Studio C++ for Windows or Xcode for Apple platforms, and OpenFL includes setup commands that help install those tools. The consequence is that the one-command workflow is only as quick as the SDK state of the machine: a fresh Windows or macOS box still needs a native toolchain before a native test run works, and OpenFL cannot remove that step.
Installation is delegated to openfl.org and nightly builds go through haxelib local
The repository has no install command of its own. The instruction under Installing OpenFL is to follow the directions at openfl.org/download, so the supported route lives on the website and not in the repository. Two alternatives are written out. Nightly development builds are downloadable from the GitHub Actions runs on the develop branch, and a downloaded archive is installed with:
haxelib local openfl-haxelib.zipBuilding from source starts with a clone, then points haxelib at the checkout:
git clone https://github.com/openfl/openfl
haxelib dev openfl openflTo go back to release builds, run:
haxelib dev openflA source build may also need a development build of Lime installed, so a pure OpenFL checkout can fail against a release Lime. Nightly builds are only produced when there are changes, which means a quiet week yields no new download.
3D is an add-on: OpenGLRenderer, Stage3D, Away3D and Starling
OpenFL is designed primarily for 2D development. For 3D there are two routes. The OpenGLRenderer API lets a developer write WebGL-style code and mix it with the OpenFL display architecture. The Stage3D API is also supported and can be used directly, or through libraries such as Away3D and Starling. There is no built-in scene graph, model loader or material system mentioned, so a project wanting those pulls in Away3D or writes them on top of OpenGLRenderer. The same section is the honest answer to anyone comparing OpenFL with a general engine: the 2D display list is the core, and 3D is something to assemble.
Native extensions go through CFFI for C++ and a library project API for Java
A native target produces true native C++ output, which allows deep integration with platform features and third party SDKs. The standard Haxe CFFI API connects Haxe classes directly to C++ libraries. For Android there is a separate library project API for adding Java based extensions. Extensions can use the standard Lime project format, which controls dependencies, extra assets and output tuning, and the intent is that extensions drop into projects interchangeably without breaking one another. No attempt was made to emulate the system for AIR native extensions, described as much more difficult to create and less flexible. An existing AIR native extension therefore cannot be reused as is. It has to be rewritten against CFFI or the Android library project API.
Libraries and editors come from the Haxe ecosystem, not from OpenFL itself
Compatible libraries include Starling, Away3D, DragonBones, Nape, Box2D, Actuate, HaxeFlixel and HaxePunk, a mix of ActionScript ports and Haxe originals. Stencyl is named as a platform that OpenFL powers. For editors, Visual Studio Code has a Lime extension published under the openfl publisher, and HaxeDevelop, Sublime Text, IntelliJ IDEA and Moonshine IDE are also listed. Questions go to the forums at community.openfl.org or the Discord server. The cost of this arrangement is that library quality varies by repository, and the OpenFL repository gives no per-library compatibility matrix against 9.5.2, so check each library's own repository before building on it.
Editorial conclusion
OpenFL fits developers who already know the Flash display list, or who want one Haxe codebase shipping to HTML5, desktop and mobile with hxcpp native output. It is a poor fit for teams that need a 3D engine, a visual editor or a one line install. Before committing, check that every target on your list is in the supported platform list rather than the console list, because the console ports are community work with no published details.
Frequently asked questions
What is OpenFL?
OpenFL is an open source library for creative expression on the web, desktop, mobile and consoles, written in Haxe and inspired by the classic Flash and AIR APIs. It is released under the MIT license.
what is openfl
It is a Haxe library that builds one codebase to native C++, Neko, Flash bytecode or JavaScript. It depends on Lime for command line tools and backend support.
OpenFL vs Godot: which should I pick?
The repository contains no comparison with Godot. It says OpenFL is designed primarily for 2D development, with 3D reached through the OpenGLRenderer API, Stage3D, Away3D or Starling.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/openfl-openfl)Star history chart for your README
[](https://hysenlabs.com/projects/openfl-openfl)Was this useful?