About exposing Haxe classes for JavaScript

Covered by the Haxe Manual in greater detail, but I want to mention it here to be complete in my documentation.

Sometimes you need to make Haxe classes or static fields available for usage in plain JavaScript. You can do this with @:expose metadata.

Because using Haxe doesn't mean nobody can use your code! This is BIG misconception. When using Haxe and JavaScript you can do anything that you normally would do with plain JavaScript.

results matching ""

    No results matching ""