The first big tasty project I worked on at TMW was an online scrapbook for Persil. The designs were done by Fed and once it was all put together it turned out to be a really nice project. The application allows you to upload photo’s, use some clip art, draw pictures and write stuff. The biggest challenge was saving the scrapbook out as a JPEG but after a bit of a google search I found this really useful post which worked perfectly.
The other small challenge was storing the drawings that people did and then re-creating them when someone logs back in, but this turned out to be fairly simple as I just stored each x/y co-ordinate in an array on mouse move.
The actually application was very much hidden away on the Persil site, and is also a pain to access as you have to create an account and log in etc – something that was out of my hands and to be honest a bit of a shame as it’s meant the app has got very few hits. I personally would have let people open the scrapbook and play with it without the need to register, then make them register if they wanted to save what they’ve done, but still, it’s a great folio piece for me and was really fun to make.
You can view a watered down version of the scrapbook here. It doesn’t allow you to upload pictures or save what you’ve done but you can do everything else the original app does.
I found out the exact way of doing this..I explained the code in this tutorials
http://www.shefeekj.com/webcam-using-flasg.html
17 Jun 2009Hi Shefeek, all the help you should should can be found here
7 Apr 2009http://saezndaree.wordpress.com/2007/10/20/export-a-movie-clip-from-flash-to-an-image-file-using-c-and-actionscript%E2%80%99s-bitmapdata/
You can get the source files there too. In a nutshell what’s happening is you use the draw method of BitmapData class to grab all the pixel data of the movieclip you want to save as a jpeg. then you can use two for loops to get the colour data of each pixel (using getPixel()) and store that in a string. You then send this string to the .asp script which creates the image and saves it. This method works really well with small/medium images but can really slow up your processor if you use large images – to get around this with a slightly larger image I used a Timer (or setInterval in AS2) instead of a double for loop, that way I was able to create a progress bar to give the user some feedback so they don’t think their computer has died! Hope that helps, go and grab the source code and experiment but if you do need more help don’t hesitate to get in touch.
hi,I am Shefeek Jinnah.I guess you are also working with flash and action script to bring pictures out of flash and to save it.i would like to know the details of the code you have implemented.I am also trying it out in one of my project,.you can access the demo run at http://www,shefeekj.com..
6 Apr 2009Regards
Shefeek Jinnah