Javascript (haxe target) not auto-executable possible?


(henrique) #1

Hello everyone
I would like to know if it is possible to generate a project for an output in JS, but that is not auto-executable? For
example, I create a javascript component (JS) in haxe, but that I can
start it (inside the HTML) when needed, not an auto executable that when
opening the HTML in the browser the component will already be created.

Scope of the forum
(Dan Korostelev) #2

You just don’t specify -main SomeClass in compiler arguments and instead specify SomeClass (and/or other qualified type names to include) and also use @:expose to, well, expose your classes to JavaScript (see

(Valentin Lemière) split this topic #3

3 posts were split to a new topic: Scope of the forum

(henrique) #5

Boy, thank you.
Actually I have to read the HAXE documentation more carefully because I read it before, but I see that I’m not paying attention.
Thank you very much.