Saving swf contents as image to server

Hi Everyone,

I was wondering if anyone knew a good way to have a specific portion of the stage save as a .jpg to the server.

So, if a user were to draw something, and click a “save” button, they would be able to save their drawing to the server as a jpg.

Suggestions, tut references, etc. Any help would be greatly appreciated!