lundi 28 novembre 2016

Is there a syncronous load bytes method yet for Flash or AIR?

Is there a synchronous loadBytes() method yet in Flash Player or AIR?

More Info:
I'm trying to load a byte array and convert it into bitmap data synchronously (NOT ASYNCHRONOUSLY). It cannot be asynchronous. It is PNG that was encoded into base64 data.

Now I'm decoding from base64 into a byte array and then trying to decode that byte array into bitmap data. There is no way to go from byte array to bitmap data without a loader and loader.loadBytes() is asynchronous.

I suppose I could pass the byte array to JavaScript if there is a class for that but that's a last resort.

FYI I'm running AIR 23.

Aucun commentaire:

Enregistrer un commentaire