Flash 10 : SaveBitmap Class

James Hill
James Hill
Published in
1 min readNov 4, 2008

One of the things that really annoyed me about pre-Flash Player 10 AS3, was the security sandbox restrictions of accessing the local file system using FileReference. To load an image into an application for example, meant bouncing it’s byteArray off a server-side script and back again.

This was again true, if simply wanting to save an image locally. You’d first have to use an encoder such as Adobe’s JPEGEncoder, fire the resulting byteArray over to your saveImage.php script, then initiate a FileReference.download() to retrieve it. I’m glad to see this nonsense has been dealt with in FP10.

Check out an example over at Bit-101…

--

--