Need help with color transform call

This works, but only with the last image. Why?

I broke apart a kitchen photo into five .png files so I could click on cabinets or floor, etc. to change color. Using separate functions like “colorCabinets()”, “colorFloor()”, etc. works but ONLY on the last image in the mxml.

In the snippet below, colorFloor() will color floor, colorCabinets() will not color cabinets. However, if you do nothing else but comment out the floor image, making cabinets the last image, cabinets will then take the color.

Thanks in advance for any help.

function snips …
cabinets.transform.colorTransform=color
floor.transform.colorTransform=color

mxml …
<mx:Image id=“ceiling” x=“141” y=“78” width=“347” height=“236” source=“ceiling.png”/>
<mx:Image id=“walls” x=“141” y=“78” width=“347” height=“236” source=“walls.png”/>
<mx:Image id=“counterTops” x=“141” y=“78” width=“347” height=“236” source=“counterTops.png”/>
<mx:Image id=“cabinets” click=“colorCabinets()” x=“141” y=“78” width=“347” height=“236” source=“cabinets.png”/>
<mx:Image id=“floor” click="colorFloor()"x=“141” y=“78” width=“347” height=“236” source=“floor.png”/>