[HELP] Programming an MS Paint type of Program in Flash

So basically I’m looking for a way to paint/make shapes/type in a flash program and then save the image created to a server. Can anyone point me in the right direction for doing something like this. Or if you know of some good search terms to find other threads about this please let me know. Thanks in advance!