So I'm trying to program a game using flash, and it's my very first time and I can't get something to work. In the game, a ball will float across the screen and if you click on it you get 2 points. Except when I test it, the first time I click on the ball I get the letters 'eoceeeo' and if I click the ball again I get the letters 'eeoS'. The dynamic text is on a layer with the first frame having the AS of
var _root.score = 0;
gameScore.text = _root.score;
The dynamic text has a varible of _root.score and a name of gameScore The floating ball has the AS of
on(release) { _root.score+=2; _root.gameScore.text = _root.score; }