Hi there!!
Im really new to Flash n Actionscript and have been dropped in to make a switch that will make a light come on in the first click and off on the second, on on the third and off on the forth etc… etc…
i have created the switch as a button and the light on/off as two movie clips…
what coding would i be looking to add to make this switch work…
previously i have been given this… but its not working :puzzle:
//this is for the button (switch)
on(release) {
if (_root.light_on:active == 1) {
setProperty("_root.light on", _visible, “1”);
_root.light_on:active = “0”;
} else {
_root.light_on:active = “1”;
setProperty("_root.light_on", _visible, “0”);
}
}
//this is for the light on
onClipEvent (load) {
active = “1”;
setProperty("_root.light_on", _visible, “0”);
}
hope u can help… much appreciated in advance