Hi..
It maybe stupid question, but after trying several times, finally gave up...
After make js file from below haxe source, how to access functions like Main, main, onClick, test from html?
package ;
import js.Lib;
class Main
{
static function main()
{
Lib.alert ("static main");
}
static function onClick():Void
{
Lib.alert ("onclick");
}
public function test():Void {
Lib.alert ("test");
}
}
-----------------------------
in html
<script src='haxeGenerate.js'/>
<script>
// how to access in here??
</script>