setTIMEout Canvas HTML NEED HELP
Hello everyone,
I am trying to use the setTimeout event in order to delay the firing of a specific function on the click of a button, (Disj), all I need is make ( prise) get "off " after 60 seconds , and in the seconde click make the time reset
sorry for my english
This is my code
this.Disj.addEventListener("click",switchF.bind(this));
function switchF(e){
if(this.Disj.currentLabel == "up"){
this.Prise.gotoAndStop("on");
} else {
this.Prise.gotoAndStop("off");
}
}
