Learn Haxe

An easier way to learn how to use the Haxe core and related technologies.

HaxeFlixel in Cloud9

Tagged with: Haxe, OpenFL, HaxeFlixel

Cloud9 provides remote, cloud-based development enviornments. Under the hood, they provision you a Linux VM with Docker. By default, they provide pre-build environments for Rails, C++, PHP, and other enviornments. But not Haxe.

It turns out that setting up Haxe, OpenFL, and HaxeFlixel is really simple.

  • For Haxe, download and run the Linux 64-bit binaries. (Copy the tar URL, eg. http://haxe.org/download/file/3.2.1/haxe-3.2.1-linux64.tar.gz, and grab it via curl <url>)
  • For OpenFL, run haxelib install openfl.
  • For HaxeFlixel, run haxelib install flixel. (Don't forget to install and setup flixel-tools too.)

That's it! You can build your Haxe apps, or your OpenFL/HaxeFlixel games in Flash. To view them:

  • Find the binary in the workspace view
  • Right-click and pick Preview
  • Click the square/arrows icon to open in a new tab

This opens the SWF in a new window/tab where it runs properly.