• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

My Mind is stack Need Help urgent

Community Beginner ,
May 14, 2020 May 14, 2020

Copy link to clipboard

Copied

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

TOPICS
ActionScript

Views

251

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation