I found that these two APIs didn’t work as imagined.
AssetLibrary.loadFromBytes
AssetLibrary.fromBytes
It just parse string from bytes in source code.

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