Is there actionscript to enable a screenshot of a specific area of the screen? And possibly display this screenshot at a different stage?
Asked
Active
Viewed 1,450 times
1
-
Do you mean taking a screenshot outside of your flash application? – Florian F Jan 19 '11 at 10:00
-
No, of storing a part of the scene as an image or movie clip and then displaying it. – Luke Evans Jan 19 '11 at 11:02
-
Again, do you want to take a screenshot of your flash content or take s screenshot of the website that is around it? The first is easy, the second not. – daniel.sedlacek Jan 19 '11 at 11:42
-
screenshot of the flash content, but a specific area of the content. Then display again in a different position... – Luke Evans Jan 19 '11 at 12:33
1 Answers
1
You will need to use the BitmapData object to draw the current pizels onto a new object. The code might look something like this...
//Assuming x,y,w,h is the area you want to capture
//Create a new bitmap data object to store our screen capture
var bmp:BitmapData = new BitmapData(h, w);
//Draw the stage onto our bitmap data clipping at the correct points
bmp.Draw(stage, null, null, null, new Rectangle(x, y, w, h));

StapleGun
- 690
- 7
- 14