libraries
Overview of Haxe code snippets, examples and tutorials tagged with libraries.
May 23, 2016 Compilation / Compiling libraries without main class
In most cases, you want a Main class with a static main function as entry point to start your program. However, there are cases where there is no need for this - for example if you are writing a library that other programs will be using. ‥
Oct 20, 2019 Compilation / Writing target-specific modules differentiated by filename
The standard way of naming module files in haxe is <Modulename>.hx - the module name spelled with first letter capital, and ending with .hx as extension. Let's say we have the following class called Example:‥
Jul 17, 2018 Other / Publish to Haxelib using Travis and Github Releases
This tutorial will help you publish your library automatically to lib.haxe.org when you create a release on GitHub.‥
May 24, 2016 JavaScript / Using Haxe classes in JavaScript
Normally, when compiling Haxe to JavaScript, the resulting code is kept away from the global scope. This means that you can't reach the Haxe generated code from other scripts. To make that possible, there's the @:expose metadata that can be used on a class. This makes the class exposed to the global scope, and therefore possible to use in plain JavaScript.‥