[FL8][AS2] Drawing and then saving as .jpg

Ok, so let me lay this on you guys.

At school, we’re going to have something which translates kind of “degree in computers” which requires to create something, anything, in any programming language, to get a lousy A and pass.

The standards are really low, a grade A is something a site you’d make in PHP in 45 minutes and have only 3 pages.

But this “degree” has made me think of an application, destined for kiddies. In fact, the idea belongs to my girlfriend, but that stays between us ^^

The fact is, using the Drawing API (or not, but that’s the only idea I have at the moment) how could I draw something on the Stage, and then have it saved as an external .jpg? Is this possible using only Flash?

I could really use some feedback on this, but it’s not that important. I’ll just lose the feature.

Thanks for reading this
Cheers

P.S Please DO ask for extra details/information, if the whole concept is blurry.