Add numbers

hey i followed the turtorial on how to add numbers to a dynamic text box but wat i really wannt know is how to make it do something if it hits a certain number…I tryed on my own… as i didntwanna bother people here but for some reeason it wont go so please people help me

if (_root.total = _root.total 10) (
gotoAndPlay(2);
}

the total is the text box and i would like it to go to frame 2 wen the numbers hit 10.

close, try:
if (_root.total == 10){
gotoAndPlay(2);
}

no that doesnt work

if (_root.total == "10"){
 _root.gotoAndPlay(2);
 }

and maybe you have to check onEnterFrame?

scotty(-:

k wat u just did doenst work either…

im trying ur onenterframe thingy right now

k wat i did to make it work was make a mc and i gave the actions

onClipEvent (enterFrame) {
if (_root.total == “500”){
_root.gotoAndPlay(2);
}
}

:ps i changed the buttons they add up by intervals of 100 now

What tut are you using?

scotty(-:

the one on kirupa…

games:how to fire

Oops, I thought you still had problems, didn’t read your post that well:stunned:

scotty(-: