ByteArray to BitmapData AS3
问题 I'm using com.adobe.images.PNGEncoder to encode bitmapData to a byteArray. Is there a way to convert the byteArray back to bitmapData NOT using a Loader? thanks. EDIT: the reason i don't want to use a Loader is it being Asynchronous, and I don't want to implement eventlisteners. 回答1: The following is using the loader class but is synchronous. var loader:Loader = new Loader(); loader.loadBytes(byteArray); bmpData.draw(loader); Edit : Nevermind the loadBytes is asynchronous too, the