Masking an image

I need to know what would be the best approach to a project I am working on. It involves taking an image of a room (see attached) in fact there will be many rooms. The client needs the ability to change the color of the walls and wall base. Now the only way I know how of doing this is to map out each image creating sprites that overlay the walls and wall base. Then I would create a color picker and what ever color you pick, it would change the wall color.

However, this seems to be a awkward way of doing things and would be quite time consuming each time the client uploaded a new room. Is there another more practical way of doing this? I am using Flash CS3.

Thanks