# If and go to problem

**URL:** <https://forum.kirupa.com/t/if-and-go-to-problem/133279>\
**Category:** Uncategorized\
**Created:** [January 7, 2005, 3:30am UTC](https://forum.kirupa.com/t/if-and-go-to-problem/133279 "2005-01-07T03:30:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![a7knight](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@a7knight](https://forum.kirupa.com/u/a7knight)\
**Post date:** [January 7, 2005, 3:30am UTC](https://forum.kirupa.com/t/if-and-go-to-problem/133279/1 "2005-01-07T03:30:05Z")

</div>

ive been usin flash mx for a while, but mostly just drawing and design… if i need to use actionscript, i try to make it as simple as possible cuz im terrrible at it. i can never seem to be able to type it out right… well, lets get to my problem:

i am makin a little game where u click on moving circles and get or lose points which appear in a dynamic text box. That was a breeze. My problem is that, once your score in the game hits 1,000 , I want the game to go to the next frame which will say, “You Win!”.

I tried writing this code, which was unsucessful:

```auto
if (total == "1000") {
}
gotoAndStop(3);

```

total is the var of the dynamic text box which shows u ur score.

Like I said, I’m terrbile at actionscript… and wut happens when that code is used it will automatically skip frame two and go straight to frame three. (frame two is the actual game; frame three is the “You Win” message)

hell, i dont even know if the “if” statement is the right thing to use… does ne one have any suggestions or corrections? Thank you. 😏
