User drawing

Is it in any way possible to make an swf interface where the user can draw lines and fill in shapes right in the swf file? I know the basics of drawing lines, setting line styles, curves, and filling in spaces with actionscript, but I don’t know how to let the user do the drawing. It may have something to do with the on (press) handler and saving the coordinates of the mouse at each frame and connecting those, or something, but I’m not sure how to make that work.

Any help would be appreciated. Thanks.