Question
I'm doing a quiz but the result of the quiz is doubled. here's the code
stop();
var Mark:int = 0;
btn_start.addEventListener(MouseEvent.CLICK, startquiz);
function startquiz(e:MouseEvent) : void {
gotoAndStop("q1")
}
function right_ans(next_question:String) : Function {
return function(e:MouseEvent) : void{
Mark++;
gotoAndStop(next_question);
}
}
function wrong_ans(next_question:String) : Function {
return function(e:MouseEvent) : void{
gotoAndStop(next_question);
}
}
