I'm new to flash and I need to make a scoring system where in when you click on a symbol (button) in the stage it will add to the score textbox. I have this simple code:
on(release) {
_root.points++;
_root.score.text = _root.points;
}
that I put on the button and it works fine, the problem is when I click on another button on the stage the score textbox displays the word NAN instead of increasing by one.
Anyone can help me?