What's the fastest way to get a screen capture in flex? I am currently using: (I currently encode it to Base64 for upload to a webserver, but this is not necessarily required. All I want is an image file to appear on the server).
ImageSnapshot.defaultEncoder = JPEGEncoder;
var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(<< flex component >>);
var screenshotData:String = ImageSnapshot.encodeImageAsBase64(imageSnap);
It currently holds up the entire application for almost a second as it actually captures the image. The Base64 encoding happens essentially instantaneously.