Load openfl JS build from other JS

Hi.
Is it possible to:

  1. load openfl html5 build from other js
  2. Establish communication between loader js and openfl js?
    Best regards!

Yes and yes

We use lime.embed() (in JavaScript) to embed the OpenFL content. You could call this at any point in time that you wish. There are multiple ways to communicate between JavaScript and Haxe generated JavaScript, but this sample illustrates the ExternalInterface way of doing it:

You can use the NPM version of OpenFL as well and actually write the OpenFL content in JavaScript, too, if you want