Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Save to camera roll kicks in before draw stage is done. How to solve this? (ios)

$
0
0

Hi,

 

My app takes a screensave of an area of the stage and save it to the camera roll. The problem is that cameraRoll.addBitmapData(bitmapDataA); kicks in before the draw is done.

Is there a way to use oncomplete events on the draw-function or something like that?

 

Thanks,

 

Dan

 

  bitmapdata = new BitmapData(stage.stageWidth, stage.stageHeight);

  bitmapDataA = new BitmapData(1536, 1536);

  bitmapdata.draw(stage);

  bitmapDataA.copyPixels(bitmapdata, new Rectangle(0,236, 1536, 1772), new Point(0, 0));

  cameraRoll.addBitmapData(bitmapDataA);


Viewing all articles
Browse latest Browse all 2010

Trending Articles