Swf to communicate with JavaScript?

Is there other way than using external interface to have swf communicate with JavaScript on html page? As it seems a bug in haxe that external interface does not work

There’s a “BrowserExternalInterface” sample included with OpenFL that should work for both HTML5 or Flash. See if that works for you on the Flash target

Thanks, but in the sample, there is a call:

but index.html was not generated, I only get the swf file, here is how I build:

haxelib run lime build "project.xml" flash -debug

Sorry about that, try:

openfl test flash -web
1 Like