Hi.
Is it possible to:
- load openfl html5 build from other js
- Establish communication between loader js and openfl js?
Best regards!
Hi.
Is it possible to:
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