Suggestion about AssetLibrary

#1

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:

0 Likes

#2

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

0 Likes

#3

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

0 Likes

#4

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:

0 Likes