ну чтото в этом роде:

Код:
var testVariable = 0;
but.onPress = function() {
intervalID = setInterval(tame, 1000);
}
but.onRelease = function(){
clearInterval(intervalID);
}
function tame(){
if(testVariable<9){
test.text = testVariable;
testVariable++;
}else{
testVariable = 0;
}
}