Skip to main content
Known Participant
Aug 18, 2011 8:52 AM UTC
Answered

Save screen to an image file using AS3 CS5.5, is it possible?

Hello,

I'm needing to save my screen content to a image in the camera roll, anybody knows if it is possible?

Thank you

This topic is closed to new replies. Start a new post to keep the conversation going.
romualdjayCorrect answer
Inspiring
Aug 18, 2011 12:38 PM UTC

so here is the code

  var cameraRoll:CameraRoll = new CameraRoll();  
    var bitmapData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
    bitmapData.draw(stage);
    cameraRoll.addBitmapData(bitmapData);

6 replies

Aug 18, 2011 7:21 PM UTC

That simple? I am bookmarking this for sure.


Translate
romualdjayCorrect answer
Inspiring
Aug 18, 2011 12:38 PM UTC

so here is the code

  var cameraRoll:CameraRoll = new CameraRoll();  
    var bitmapData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);
    bitmapData.draw(stage);
    cameraRoll.addBitmapData(bitmapData);
Translate
Known Participant
Aug 18, 2011 6:20 PM UTC

Thank You

Translate
Inspiring
Aug 18, 2011 12:35 PM UTC

have a look here.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/media/CameraRoll.html

Translate