We have a SWF file that used to save a screenshot of whatever is on it to a file. Something with recent browser and/or Flash version updates has caused that feature to stop working. The method used is as follows:
var jpgSource:BitmapData=new BitmapData(800,700);
[url removed, login to view](this);
var jpgEncoder:JPGEncoder=new JPGEncoder(98);
var jpgStream:ByteArray=[url removed, login to view](jpgSource);
var header:URLRequestHeader=new URLRequestHeader("Content-type","application/octet-stream");
var jpgURLRequest:URLRequest=new URLRequest("[url removed, login to view]");
[url removed, login to view](header);
jpgURLRequest.method=[url removed, login to view];
As you can see, it took a screenshot of the Flash artboard and then sent the JPG stream to a new URL where PHP would spit out this:
$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
header("Content-Disposition: attachment; filename=[url removed, login to view]");
This way it would get the browser to download a JPG file from the screenshot of the Flash artboard. It no longer works and we need troubleshooting done. We will provide the SWF, FLA and PHP files to the successful bidder.
HI, is it done with as3 / 2? if file is saved on user disk we can bypass php. can i have a look at source? regards,
Bu iş için 9 freelancer ortalamada $38 teklif veriyor
Hi! Looking at the code, it should work. If you award me the project and sent files, I'll definately make it work again within 1-2 hours. Regards, Konstantin.
Hello. I have similar script that saves image in server and it works. I think, I can help you to fix your problem. I have rich experience working with Flash and ActionScript 3.0. Thanks
Hello. I'm an ActionScript 3.0 programmer. I can make your project. I know why your code doesn't work. I will correct your code within 5 min.
Hello, you can send sources to me, I will debug and fix the problem and back with result, then you will select me for this project Regards