Javascript (haxe target) not auto-executable possible?

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.

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 Exposing Haxe classes for JavaScript - Haxe - The Cross-platform Toolkit)

3 Likes

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

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.