I'm trying to call an external Java function from Haxe. How can I call a Java function that I've written from Haxe?
Java code:
public class ExternalClass{
public static String myFunction(){ //this will be invoked from Haxe
return "External Java function";
}
}
Haxe main class:
class Main
{
public static function main()
{
trace(myFunction()); //how can I properly access this Java method?
}
}
Haxe extern class:
extern class Test
{
public static function myFunction():String;
}