ByteArray - Save image
In previous versions of flash it was a difficult task to save images to a file, especially when they are large. It could only be done by screening images pixel by pixel using for loops. With AS3 this is much simpler using the ByteArray class in combination with getPixels () and setPixels (). In this tutorial you will learn how to get all the pixel information and then using the SharedObject class how to save it and show it again. Test the movie before going further. You may be asked to agree to a security issue, since the data stored are large, about 92 kb.