I found that these two APIs didn’t work as imagined.
AssetLibrary.loadFromBytes
AssetLibrary.fromBytes
It just parse string from bytes in source code.
![image](https://community.openfl.org/uploads/default/original/2X/6/6a2cfaf04d214799d2122092dce720c064be4dee.png)
How about using
tools.js
to rewrite this function that can support swf
? ![:rofl: :rofl:](https://community.openfl.org/images/emoji/twitter/rofl.png?v=9)
I found that these two APIs didn’t work as imagined.
AssetLibrary.loadFromBytes
AssetLibrary.fromBytes
It just parse string from bytes in source code.
tools.js
to rewrite this function that can support swf
? Are you trying to use AssetLibrary.loadFromBytes
with a processed SWF library (like myswf.bundle) or an unprocessed SWF?
I has passed blob URL as path and filename as id into AssetMainfest, so I can indirectly load bytes source and parse it.
But I think openfl should have a function to support loading and parsing binary resources, isn’t it?