Skip to main content
Lbhmus17424462
Participating Frequently
May 15, 2020
Question

My Mind is stack Need Help urgent

  • May 15, 2020
  • 0 replies
  • 293 views

hi dear community

I need help,  in this project, I wanna make the lamp(bulb) get ("off") after 5 seconds, I'm a newbie

this.Disj.addEventListener("click",switchs.bind(this));

stage.enableMouseOver(10);
this.on("mouseover",function(){ this.cursor = "pointer"; });
function switchs(e){
if(e.currentTarget.currentLabel == "down"){
e.currentTarget.gotoAndStop("up");
} else {
e.currentTarget.gotoAndStop("down");
}
if (this.Lamp.currentLabel == "on" && this.Disj.currentLabel == "down"){
this.Lamp.gotoAndStop("off");
this.teleru.gotoAndStop("off");
this.Lamp2.gotoAndStop("off");

}
this.bp1.addEventListener("click",switchf.bind(this));
this.bp2.addEventListener("click",switchf.bind(this));
this.bp3.addEventListener("click",switchf.bind(this));
function switchf(e){
if(this.Lamp.currentLabel == "off" ){
this.Lamp.gotoAndStop("on");
this.Lamp2.gotoAndStop("on");
this.teleru.gotoAndStop("on");


} else {
this.Lamp.gotoAndStop("off");
this.teleru.gotoAndStop("off");
this.Lamp2.gotoAndStop("off");
}

}

}

 

 

link

https://lbhmus.com/fla/minuterie.fla

 

someone help, please

thanks

This topic has been closed for replies.