ANCC HTML5 .How to make a click event execute only 1 times
I use the code below to manipulate.
Use gotoAndStop to jump to this frame,
will be again "var kg = True"
Causes the button to click again.
Is there any other way to make the button perform only 1 times?
var kg = true
this.on("click", pd);
function pd()
{
if(kg)
{
this.play();
kg = false
}
}
this.stop();
