[FMX] Textbox limits?

Ok, i have a MC named player, it is the person, it moves around when you press the keys (up down left right), i have another MC named enemy, this follows the player MC (these are instance names), when enemy touches player, the counter ( a textbox, with the var: counter) goes to zero, but, there is another MC on the stage, with the code:

onClipEvent(enterFrame){
_root.counter ++;
}

so basiclly, the counter goes up rapidly but if the enemy MC touches you then the score is reset to 0, i want to make it so that when the textbox (counter) reaches 1000, it plays frame two,
i tried

if (_root.counter == “1000”){
gotoAndPlay(2);
}
but i dont know whatelse to do!
many thanks
Ben (flashy22)