EDIT: Realized I did not describe that properly. I want to select all the blocks of the same color that are also next to the block clicked on.
I have a grid of 99 sprites.
I am attempting to select all the blocks of the same color. When you click on a block it changes that blocks opacity to 50%. Then I spawn a sprite that is cross shaped, if any of the neighboring sprites are on the same animation frame, it changes their opacity to 50% (there are probably other ways of doing this but...). I only want it to create one cross, but it keeps creating crosses forever, they are all on top of each other, but they are there. How do I make it only do it once? I fear someone is going to tell me to read "How events work", but I must not be understanding something there.
<img src="http://i.imgur.com/6QIr0.jpg" border="0" />