# \[FMX\] Textbox limits?

**URL:** https://forum.kirupa.com/t/fmx-textbox-limits/122832
**Category:** Uncategorized
**Created:** [September 17, 2004, 1:59pm UTC](https://forum.kirupa.com/t/fmx-textbox-limits/122832 "2004-09-17T13:59:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flashy22](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@flashy22](https://forum.kirupa.com/u/flashy22)
#### Post date: [September 17, 2004, 1:59pm UTC](https://forum.kirupa.com/t/fmx-textbox-limits/122832/1 "2004-09-17T13:59:27Z")

</div>

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)
