Keeping Score Tutorial

I have done the Keeping Score tutorial here
http://www.kirupa.com/developer/mx/score.htm

It allows me to have two buttons, one will decrease the score, and one will increase.

I have followed it step by step and i am running into problems.

The decrease works fine, and it takes away 100 from the score. Great. Yet i press the increase button, and it will add 100 onto the number literally.

For example:
The score at the start is 0. I click the increase button and it turns into 0100. And keeps adding 100 onto the number.

However, if i press the decrease button first, and then press the increase button,it will work perfectly fine.

I am VERY confused!

I think that you just need to initialize the total variable as a number. The tutorial was originally written for Flash MX, a version of Flash in which automatic variable initialization was a bit different.

For example, to make the tutorial FLA work when publishing for Flash 8, I added the following line to the main timeline:

total = 0;