# Dynamic text box error, please help

**URL:** <https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361>\
**Category:** Uncategorized\
**Created:** [February 23, 2004, 12:59am UTC](https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361 "2004-02-23T00:59:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyri](https://avatars.discourse-cdn.com/v4/letter/k/f07891/32.png) [@Kyri](https://forum.kirupa.com/u/Kyri)\
**Post date:** [February 23, 2004, 12:59am UTC](https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361/1 "2004-02-23T00:59:37Z")

</div>

Hi I’m making a “shooting” type game, and I want it so that when the ammo reaches zero it goes to the next frame (or next scene if possible.) I know it sounds easy but for some reason it keeps popping up this error about a “;” in the wrong place. It would really help if someone would take a look at it and help me out.  
Thanks,  
kyri

---

<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:** [February 23, 2004, 2:09am UTC](https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361/2 "2004-02-23T02:09:23Z")

</div>

Or it could not be the text box at all, because it says the error is located in the movie clip. I tried recreating it twice but the same error occurs! Please help?

---

<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:** [February 23, 2004, 5:58am UTC](https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361/3 "2004-02-23T05:58:37Z")

</div>

you have one to many of these [AS]}[/AS]  
if you put

[AS]  
on (release) {  
\_root.total = \_root.total-1;  
if(\_root.total\<=1)  
{  
\_root.gotoAndStop(2);  
}

}  
[/AS]

on the button the movie works fine

🙂

---

<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:** [February 23, 2004, 2:52pm UTC](https://forum.kirupa.com/t/dynamic-text-box-error-please-help/102361/4 "2004-02-23T14:52:36Z")

</div>

oh thanks for the help…I guess I didn’t see that before lol
