Haxe Code Cookbook

Community driven Haxe code snippets, examples and tutorials.



Learn with Haxe

There are many ways to learn Haxe. On this website you'll find a lot of resources you need to become a Haxe developer.

So why not start learning and join the community today? If you haven’t learned Haxe yet, the time is now.


Latest articles

Jul 11, 2017 Beginner / Using strings

Defining string literals take be done by wrapping text inside double or single quotes:‥

Read »

Jul 04, 2017 Macros / Include a file next to a Haxe module file

This example lets you take a file next to the current module .hx file and include its file content. That can be very useful if you want to separate (for example) view templates, shader sources or other multiline texts from the Haxe source. The articles demonstrates how to do it with an expression macro but also with a build macro.‥

Read »

May 09, 2017 Beginner / Working with date and time

The Date class provides a basic structure for date and time related information. This article shows how to work with the date and time tools.‥

Read »

Feb 28, 2017 JavaScript / Create a server with Haxe/NodeJS

The following tutorial creates a http server using Haxe/Node.js at port 8000 and demonstrates how to build and run it.‥

Read »

The cross-platform development toolkit

Haxe is a modern high-level strictly-typed programming language with a fast optimizing cross-compiler.

Download Haxe 3.4.2
Released: 2017-03-20

Learning by example

The Haxe Foundation facilitates the following code cookbook for the Haxe commmunity. Enjoy learning Haxe; It is great!

More documentation:

Haxe Manual

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Contribution is easy

The project is being developed on GitHub. Feel free to contribute code snippets, tutorials and how-to guides.

Haxe Code Cookbook on Github

Star   Fork