dotsandcoms
asked on
Screen Capture using Flash / ASP.NET or Active X
Hi Experts,
I have a flash drawing application that needs the result screen to be captured ( like Print Screen ) and stored as JPG on the website.
I have designed this application using Flash and am looking to using ASP.NET or ActiveX to capture the screen and need this to be done for a website. I have some solutions that work offline but do not work online for websites.
Any help is appreciated.
Many Thanks
Bharat
I have a flash drawing application that needs the result screen to be captured ( like Print Screen ) and stored as JPG on the website.
I have designed this application using Flash and am looking to using ASP.NET or ActiveX to capture the screen and need this to be done for a website. I have some solutions that work offline but do not work online for websites.
Any help is appreciated.
Many Thanks
Bharat
ASKER
Thank you for your suggestion but JPGEncode class available in ActionScript3.0 and we are working with 2.0.
Can you tell that is there anything equivalent to JPGEncode in ActionScript 2.0? or Is there any solution to work with JPGEncoder Class in Action Script 2.0?
Can you tell that is there anything equivalent to JPGEncode in ActionScript 2.0? or Is there any solution to work with JPGEncoder Class in Action Script 2.0?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
- Use BitmapData class to capture the drawing in flash. For example let's say your appp draws into a movieclip called draw_mc, then you do
var bd:BitmapData = new BitmapData();
bd.draw(draw_mc);
-Then you download the JPGEncoder class from adobe http://code.google.com/p/as3corelib/. This class allow you to encode your bitmapdata into a bytearray jpeg.
-Encode the bytearray into Basê64 string - http://dynamicflash.com/2006/09/actionscript-30-base64-encoderdecoder/
-Use URLLoader to send the encoded string to asp.net
-Decode base64 in asp.net and save the file
if you need example, take a look here:
http://pixelfumes.blogspot.com/2005/11/saving-flash-to-jpg-with-c-aspnet.html
If you have doubts let me know