Tuesday, October 10, 2006

Save Flash Bitmapdata with Java

I have been looking for this Feature from quite a few time but never got time to do research on it. Finally, have been assigned to Project, which need Screen Capture (or say movieclip capture) to be saved as JPG.

There were many options, like use Flash and director, flash and php and so forth… My project is going to be in flash and Java. Just for this feature, didn’t feel like making Cocktail of technologies. Hence, started R&D. God!! didn’t find single tutorial on net for Flash Bitmapdata getting saved as JPG with JAVA. Left with no choice then developing it and after 3 days I could see something working. This might not be the correct way but it confirmed me that its possible.. (i touched java after 6 years) ..Relaxed.. :) You can download source code from here.

how to run?

1. Complie the java file.
2. Publish flash.
3. First run java file then once socket is ON run flash exe
4. click on capture and png file is ready :)

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?