Open Source Drawing Tool Classes for a Flash Drawing Pad?

Hey Guys,

I’m trying to create a simple Flash drawing pad that allows to save and edit their drawings.

I found Sen’s tutorial but it appears to be written in Flash 6 and AS1:

Are there any tutorials you can recommend for coding something similar in AS3?

Also are there any open source drawing classes that can be used to create simple drawing tools? I’m looking to create simple drawing tools like line, pencil, eraser, stamp tool, and shape tools…

Are there external classes that could be used for saving drawings into a MySQl db via PHP so that they can be edited later?

I’m just checking what’s out there, before I start coding something complex.

Thanks in advance.