Id probably attack this problem in the following way.
Give each button an extra property describing its color,now when the user clicks the two buttons push them into an array maybe
and check to see if they are the same:
//add to score
trace("colours were equal");
//play mC animation
delete the array entries and start from scratch
trace("Idiot, those dont match!");
This code would not work as it stands, it is just to help you get an idea. For instance you would need to define your array at the beginning etc etc.