Hello,
My project loads assets in a swf file, it works fine when targeting flash, how ever, I’ve noticed an error when starting the apk file at android device:
I/trace (27637): NativeBootstrap.hx:431: TRY TO LOAD SWF LIBRARY:
I/trace (27637): Assets.hx:413: [Assets] There is no String asset with an ID of "libraries/Compo.json"
I/trace (27637): Assets.hx:413: [Assets] There is no String asset with an ID of “libraries/Led.json”
Here is how I load it:
trace (“TRY TO LOAD SWF LIBRARY:”);
Assets.loadLibrary (“Compo”, function () {
Assets.loadLibrary (“Led”, function () {
Main.instance.start();
});
});
and here is how I include it in xml file:
<haxelib name="swf" />
<library path="Assets/compact-assets-cc.swf" name="Compo"/>
<library path="Assets/led.swf" name="Led"/>
Notice, I do not use the flash cc openfl extension.