PNG Decoder

Hello everybody, this is my first post here, but I have been looking these forums for a while.

Here is my first attempt at decoding images. This is a small class that can decode bytearrays from png images and transfrom that bytearray to a bitmapdata. It is very limited right now, it can only decode truecolour with alpha png images with no interlacing, no filter, and bit depth of 8.

The reason I did this was to avoid using the Loader.loadBytes() method, since I needed a faster way to load lots of small png images at the same time that are read by Flash as raw bytes.

If you have any suggestions, please let me know.