Skip to main content
Inspiring
September 9, 2014
Answered

Saving/storing/exporting bitmaps created within .swf's on the user's harddrive or a server

  • September 9, 2014
  • 2 replies
  • 401 views

Hello,

I know you can store variables in shared objects. Is there a way to save bitmaps created within the swf?

So for example

var myBitmap:BitmapData = new Bitmap(... etc.);

//saveBitmap(myBitmap, "C:\...") ???

Thanks?

This topic has been closed for replies.
Correct answer kglad

you're welcome.

p.s. here's a link to the as2 solution i've used before, Quasimondo - Mario Klingemann's Flash Blog: Flash BitmapExporter: Compress and Save Images

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

2 replies

Inspiring
September 11, 2014

Thanks

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
September 11, 2014

you're welcome.

p.s. here's a link to the as2 solution i've used before, Quasimondo - Mario Klingemann's Flash Blog: Flash BitmapExporter: Compress and Save Images

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

kglad
Community Expert
Community Expert
September 10, 2014

yes, use the jpegencoder class, JPEGEncoder - Adobe ActionScript® 3 (AS3 Flex) API Reference

there's an as2 solution, but it's not as easy to use.