stage.addEventListener(MouseEvent.CLICK, burnIt);
function burnIt(event:MouseEvent):void {
if (mouseX < 100 && mouseX > 50 && mouseY < 0 && mouseY > 200) {
timer.start();
timer2.start();
}
}
I need to add an if else statement so that once the function (timer is started) clicking again will stop the timer, yet I keep getting illegal function errors. Any suggestions?
Thanks Again…