Facebook instant game integration with openfl/haxeflixel

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.


  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?


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:


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