/* Click to Hide an Object
Clicking on the specified symbol instance hides it.
Instructions:
1. Use this code for objects that are currently visible.
*/
var score:Number =0
scoreText.text="SCORE"+String(score)
target2.addEventListener(MouseEvent.CLICK, fl_ClickToHide_2);
function fl_ClickToHide_2(event:MouseEvent):void
{
score+=1
scoreText.text="SCORE"+String(score)
trace("SCORE")
}
No comments:
Post a Comment