Saving image in actionscript

Hi everyone,

Can somebody please help me and give some ideas on my dilemma??
I wanted to create a flash application like this http://flashtuts.s3.amazonaws.com/080_DrawingApp/Src/preview.html
but the only difference is I want to save my image into the default folder with different names. I don’t need for prompting to save the image but instead it will automatically saved in the default folder when you click the save icon.

Here’s the link I followed for the sample link above. http://active.tutsplus.com/tutorials/games/create-a-basic-drawing-application-in-flash/

Thanks and Godbless!