# \[FMX\] Textbox's counting up?

**URL:** https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682
**Category:** flash
**Created:** [September 28, 2004, 6:37pm UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682 "2004-09-28T18:37:31Z")
**Posts on this page:** 6
**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 28, 2004, 6:37pm UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/1 "2004-09-28T18:37:31Z")

</div>

Hey all,  
ok lets first start with my settings:  
i have a dynamic text box with the var: counter, instance: c2  
i have a MC on the screen with the code

```auto

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

```

i want to put some coding on the frame they are on to say, when the text box counter reaches 200, gotoAndStop(2);  
but i was puzzled as to how,  
thanks alot,  
Ben (flashy22)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 28, 2004, 7:20pm UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/2 "2004-09-28T19:20:19Z")

</div>

if(counter=200){  
gotoAndStop(2)  
};

Something like that?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 28, 2004, 11:28pm UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/3 "2004-09-28T23:28:16Z")

</div>

No sorry that didnt work,  
any other ideas?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 29, 2004, 1:16am UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/4 "2004-09-29T01:16:18Z")

</div>

What exactly are you trying to do here?

Post your fla

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 29, 2004, 3:54am UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/5 "2004-09-29T03:54:08Z")

</div>

> [@GreenLantern](#):
>
> What exactly are you trying to do here?
> 
> Post your fla

Ok.  
here is the .fla,  
as you can see, the MC has the counting up for the dynamic text (code in earlier post) i want the movie to stop on the next frame when the counter reaches 200  
the reason i am doing this is i am making a game, and if what im trying to do above is possible, then it would make this game a whole lot quicker to make!  
hope someone can help,  
Thanks alot,  
Ben (flashy22)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 29, 2004, 11:45am UTC](https://forum.kirupa.com/t/fmx-textboxs-counting-up/65682/6 "2004-09-29T11:45:55Z")

</div>

ok, here you go. Keep in mind this is a very crude example. In the real world you should avoid the use of \_root.
