Touch the right THING - how to?

Hey everyone,
Looking for some instruction on how I would accomplish this scenario.
Say 5 little actor boxes of different colors appear on the screen.
When they appear a sound is played that says "red."
The user then has to touch the box that is the color red to get the point.
Then the thing reloads with new boxes, and it says a different color, and you have to touch that one.
I know how to spawn random actors thanks to tshirbooth's tutorial.

I'm really not clear on how I can associate the "color" sounds with the actors, and have only the one sound for one of the actors play when they all spawn.
I also need to figure out how to track that the user touched the correct actor, but, one step at a time!
Looking for some instruction on how I would accomplish this scenario.
Say 5 little actor boxes of different colors appear on the screen.
When they appear a sound is played that says "red."
The user then has to touch the box that is the color red to get the point.
Then the thing reloads with new boxes, and it says a different color, and you have to touch that one.
I know how to spawn random actors thanks to tshirbooth's tutorial.

I'm really not clear on how I can associate the "color" sounds with the actors, and have only the one sound for one of the actors play when they all spawn.
I also need to figure out how to track that the user touched the correct actor, but, one step at a time!
Comments
In the background
If color attribute 1 play sound red
If 2 play sound pink, etc
In the actors
If touch
And if attribute 1
Change score to score +10
Else, take a life, end scene, whatever,
Timer .2
Destroy
Do this repeatedly for all choices
else