# Problem with scoring in flash mx

**URL:** <https://forum.kirupa.com/t/problem-with-scoring-in-flash-mx/68068>\
**Category:** Uncategorized\
**Created:** [October 21, 2004, 6:48pm UTC](https://forum.kirupa.com/t/problem-with-scoring-in-flash-mx/68068 "2004-10-21T18:48:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmoore](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rmoore](https://forum.kirupa.com/u/rmoore)\
**Post date:** [October 21, 2004, 6:48pm UTC](https://forum.kirupa.com/t/problem-with-scoring-in-flash-mx/68068/1 "2004-10-21T18:48:52Z")

</div>

I have a bunch of textboxes that they have to click a button to check to see if their entry is correct. I have this code within the buttons

on(release) {  
if(\_root.q5answer == “2”) {  
\_root.correctmovie.gotoAndPlay(2);  
\_root.total = \_root.total + 5;  
}  
}  
on(release) {  
if(\_root.q5answer !== “2”){  
\_root.wrongmovie.gotoAndPlay(2);  
}  
}

it adds 5 every time to the dynamic text box…I have this within the correctmovie (which is checked after each question):

if (\_root.total(Number(100))) {  
tellTarget(“allcorrect”) {  
gotoAndStop(2);  
}  
}

it adds up correctly, but when it gets to 100, it doesn’t play the allcorrect movie…any ideas?

thanks
