Changing colors depending on another objects colors

hey.
Basicly there are 2 boxes on the stage, i want to make it that as one box changes colors, the other one copys, but with a bit of a lag.

thanks.

/////note: please explain the actionscript if you can :slight_smile: