Exporting to jpg with actionscript

I’m building a drawing application for children, using flash.
Is there a way for the children to save their work at the end, to say a jpg, gif, or bmp file? I want to do this functionality, but not sure if such a command exists. I know that you can print with actionscript, but is that all?

Thanks