Skip to content
aduros edited this page Jun 18, 2012 · 20 revisions

This guide will walk you through installing and setting up Flambe.

Requirements

  • Haxe 2.09 or higher.

  • Python 2.6 or higher, Flambe's build tool is written in Python. If you use Mac or Linux, you likely already have it installed. On Windows, it's a quick download.

Downloading

Download and setup Flambe by running:

haxelib install flambe
haxelib run flambe setup

If you have FlashDevelop installed, the setup will ask to install a FlashDevelop project template for Flambe. This is highly recommended!

On Mac and Linux, haxelib run must be run as root (sudo).

Onwards!

At this point, you can create a new project by running haxelib run flambe new (or from within FlashDevelop if you installed the template). Projects can be built from within FlashDevelop, or by running wafl configure --debug once, then wafl install. Wafl is Flambe's build tool.

Then open a browser to deploy/web/index.html. The Flash or HTML5 build will run depending on what your browser best supports.

Compiling and hacking the demos is a great way to learn by example. There will later be a tutorial for a gentle introduction to Flambe.

NOTE: Some of the demos require file parsing, which will throw a security error if loaded from file://. To properly test, you should load from a real web server. One way to do this is python -m SimpleHTTPServer then navigating to localhost:8000/index.html.

Clone this wiki locally