Changing drawing board pen colour

hey guys well im making a drawing board and i want users to be able to press colours on my swf to be able to change the colour of the pen how can i do this?
if you dont know what i mean just check a paint package out and look at how you chose your colour thats what i want to do?

can this be done?

thanks fireblade87