Colour in game?

Can you make a colour in game with flash? you know the one, its got a picture then you click on the colour you want then you click on the part of the image, and it fills in that part. a bit like the fill bucket tool in flash

Thanks to all who reply!

I would suggest you do it with buttons, each shape on the picture being a button. That seems like it would be the most straightforward way of doing it to me…

yes but then how would you get the different colours in each spot?