Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created June 1, 2012 00:01
Show Gist options
  • Select an option

  • Save ccapndave/2847353 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/2847353 to your computer and use it in GitHub Desktop.
FB.hx
=====
@:native("FB")
extern class FBExtern {
public static function init(params:Dynamic):Void;
}
class FB extends FBExtern {
public static function startup() {
trace("doing the startup");
}
}
Main.hx
=======
FB.startup(); // this works
FB.init(); // this give #FB has no field init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment