Hi, I'm completely new to Flash and AS3 and I've got a small issue...
On my stage I have a simple button and a dynamic text field for score.
Each time you click the button the counter should add 1 point to the score number
this is my code:
___________________________________
var score:uint;
scoreinstance.text = " " + score;
this.addpointbtn.addEventListener(MouseEvent.CLICK ,clickListener1);
function clickListener1(event:MouseEvent):void
{
score ++;
}
___________________________________
the buttons instance name is addpointbtn. I've clicked on the dynamic text field and chosen Embed and simply added a Font 1 to it.. No idea why I had to do this but I got an error message if I didn't.