Facebook instant game integration with openfl/haxeflixel


#1

hi team,

had anyone successfully integrated facebook instant game feature with openfl/haxeflixel?
below is the link to facebook instant game that I’d like to integrate.

https://developers.facebook.com/docs/games/instant-games/getting-started/quickstart

  1. what openfl event function handler I can use in order to know whether html5 game assets/resources are loading/completed?
  2. what else did I need to know from openfl side to work with javascript? any link/article?

Thanks,
Kevin


#2

We preload assets by default, so once your main class is called, your assets are ready.

Here’s a little information on working with JS:

http://old.haxe.org/doc/js/extern_libraries

You can put this in #if js ... #end in order to keep compilation on other targets :slight_smile: