dot2.addEventListener(MouseEvent.CLICK, hitdot2);
function hitdot2(event:MouseEvent):void
to make the scoring work and come up on the screen u first create a text box the u put in this bit of coding
{
score+=1
scoreText.text="SCORE "+String(score)
dot2.gotoAndPlay (25)
trace("SCORE")
}
(((All in all this is the final coding you should have ;)))
var score:Number =0
scoreText.text="SCORE "+String(score)
dot2.addEventListener(MouseEvent.CLICK, hitdot2);
function hitdot2(event:MouseEvent):void
{
score+=1
scoreText.text="SCORE "+String(score)
dot2.gotoAndPlay (25)
trace("SCORE")
}
No comments:
Post a Comment