# NEED HELP! With score

**URL:** <https://forum.kirupa.com/t/need-help-with-score/216538>\
**Category:** flash\
**Created:** [February 17, 2007, 6:24pm UTC](https://forum.kirupa.com/t/need-help-with-score/216538 "2007-02-17T18:24:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ninjapoop](https://avatars.discourse-cdn.com/v4/letter/n/3d9bf3/32.png) [@Ninjapoop](https://forum.kirupa.com/u/Ninjapoop)\
**Post date:** [February 17, 2007, 6:24pm UTC](https://forum.kirupa.com/t/need-help-with-score/216538/1 "2007-02-17T18:24:02Z")

</div>

I need some help with my score counter in a game im making. Whenever you  
rollover a object with another, it gives me a score of NaN? instead of a number.  
Heres my score actionscript

" \_root.total = \_root.total + 100;"

And here is the full code.

onClipEvent (enterFrame) {  
if (\_root.punchbg, hitTest(\_root.ball)) {  
\_root.punchbg =\_alpha = 10  
mysound = new Sound();  
mysound.attachSound(“Scrbar”);  
mysound.start()  
\_root.total = \_root.total + 100;  
} else {  
\_root.punchbg =\_alpha = 100

}  
}  
And i allready set the Var to total. 🔗  
Does anybody know how to fix this?  
[SIGPIC][/SIGPIC]  
 ![](http://www.kirupa.com/forum/styles/kirupaProblue/statusicon/user_online.gif) [![](http://www.kirupa.com/forum/styles/kirupaProblue/buttons/report.gif)](http://www.kirupa.com/forum/report.php?p=2066538) ![](http://www.kirupa.com/forum/styles/kirupaProblue/misc/progress.gif)
