Suggestion about AssetLibrary

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
How about using tools.js to rewrite this function that can support swf ? :rofl:

Are you trying to use AssetLibrary.loadFromBytes with a processed SWF library (like myswf.bundle) or an unprocessed SWF?

Of course I did.
But I don’t know what it means to do so.:thinking:

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? :rofl: