How can I disable an actor from being used again after its been used once?

Im making a jeopardy iPhone game for myself so I can study for exams. It is going well except is there any way that I can get something to not get pressed again after I've pressed it? Like say I've pressed x category for 100. I would then answer the question and go back to the screen with the categories and values. So how would I make it so that 100 that i pressed and answered can't be pressed again?
Comments
when touch is pressed and self.used = false
change attribute self.used to true
change image or dim alpha to show its been used
Do whatever else you want
Therefore if its been used and you touch it again, nothing will happen.
Oh and in the rule, does it say ALL conditions or ANY? Make sure its ALL.
So in your 1st rule, it has 2 conditions yeh? 1 saying touch and 1 saying when self.attribute is false and this is set to all conditions to be met?
http://www.megaupload.com/?d=PRFIB87O
Just unzip and open the project, there is only one actor, if you preview it and click on the actor you will see it change state. Come back to the creator and look inside to see the rules.
Its only very basic but its the core of what you want, you then need to apply that to however you wish to control it.
Im off to bed now, hope that helps.
Cheers