Thanks dop2000, that was just what I was looking for.
One last question. I have a row of four instances of the same sprite. When one is touched it's destroyed and is replaced using an instance variable, but this doesn't work if the sprite is playing the different animation. How do I get it to respawn?