Visibility or opacity not working in a set interval function in HTML5
Dear all, thank you for your time
I have a strange problem with visibility and opacity in a set interval function , every time i put
the code in I get an error in the console "Uncaught SyntaxError: invalid assignment left-hand side".
I tried putting == instead of = error cleared but the visibility would not work.All other operations work inside the function, I also tried opacity as well but the results were the same.
function control(){
//abs reset
if ( this.swpanel_main.alt_mc.currentFrame == (0)&& this.swpanel_main.bat_mc.currentFrame == (0)&& this.main_mc.mainstart_mc
. currentFrame == (0))(
//Schematic
this.enginst_mc.amp_mc.gotoAndStop(0)&
this.enginst_mc.fqind_mc.gotoAndStop(0)&
this.enginst_mc.vac_mc.gotoAndStop(0)&
this.enginst_mc.fflow_mc.gotoAndStop (0)&
this.enginst_mc.oil_mc.gotoAndStop (0)&
this.bata_mc.visible = false &
this.tach_mc.tacind_mc.gotoAndStop(0)&
this.warnpnl_mc.wvac_mc.gotoAndStop(0)&
this.warnpnl_mc.wvolts_mc.gotoAndStop(0)&
this.warnpnl_mc.woil_mc.gotoAndStop(0)
)
//ABS
if ( this.swpanel_main.alt_mc.currentFrame == (5)&&this.swpanel_main.bat_mc.currentFrame == (5)
&&this.main_mc.mainstart_mc. currentFrame ==(20) )(
//Schematic
this.enginst_mc.amp_mc.gotoAndStop(33)&
this.enginst_mc.fqind_mc.gotoAndStop(15)&
this.enginst_mc.vac_mc.gotoAndStop(19)&
this.enginst_mc.fflow_mc.gotoAndStop (9)&
this.enginst_mc.oil_mc.gotoAndStop (19)&
this.tach_mc.tacind_mc.gotoAndStop(19)&
this.warnpnl_mc.wvac_mc.gotoAndStop(0)&
this.warnpnl_mc.wvolts_mc.gotoAndStop(0)&
this.warnpnl_mc.woil_mc.gotoAndStop(0)
this.bata_mc. visible = true;
)
}
setInterval(control.bind(this),100);
Full code 360 lines
I do not know what I am doing wrong ?
Best regards
Spycatcher

