PDA

View Full Version : Capture screen using flash and save image on the fly


Phoenix2779
02-16-2006, 03:55 AM
SCENARIO
Visitor uploads his/her image using Flash 8 browser file functionality. Visitor then drags a shape or mask over the image and then press a button called 'Save'.

Flash upload the image into a web server without using database, then somehow 'capture screen' the image along with background and mask/shape, save it and display it as part of a wallpaper or something else.

QUESTIONS
1. Is this is possible to do?
2. How to do this without involving third party plug-in or software?

I roughly estimate that the masking and uploading image are possible, but the capture screen part is confusing.

Any help is appreciated :)

Flash Gordon
02-16-2006, 04:48 AM
This was asked not too long ago (but I can't remember who gave a great solution).

I think the answer involve Bitmap Class.

n_killah
02-16-2006, 08:22 AM
I wrote an article in my blog about saving movieclip to bitmap file.
Check it out:
http://robertpohl.blogspot.com/

Phoenix2779
02-16-2006, 08:52 PM
Hmm, the save bitmap class looks cool. I admit the action script and C# codes are beyond my expertise. I will play with this a bit more and discuss it with my programmer.

It looks promising though. I think I can replace the text input field with the masking shape that utilises drawingAPI class in Flash 8. Then perhaps convert the mask shape, the uploaded image and background image as one flatenned bitmap.

Cheers guys, I really appreciate you taking the time :)

CamX
02-16-2006, 10:07 PM
Hi

Is this the sort of thing you are looking for http://www.sephiroth.it/tutorials/flashPHP/print_screen/ :)

Phoenix2779
02-27-2006, 08:34 PM
Thanks for posting the link Cam X, that was awesome. I will have a play with it. If it's successfully helped me with the project, I will post a link to it. Lots of time needed to digest this though.

Thanks :)