Quiz error
Hi,
I'd love to know what's the problem with my quiz, flash says that all is ok but when I try it, there's only score text and countdown text but it doesn't work
var myscore = 0; score.text = myscore+"";
var question:String='abc';
var answer:String='cba';
var question2:TextField=new TextField();
question2.x=334
question2.y=39
question2.text=question;
var reponse:TextField=new TextField();
reponse.x=342
reponse.y=309
// at some point check
if(reponse.text==answer){
ponv.visible=true;
myscore+=10;
nextFrame();
} else {
ponx.visible=true;
nextFrame();
}
var qTimer:Timer = new Timer(1000);
qTimer.addEventListener(TimerEvent.TIMER, countdownHandler);
function countdownHandler(event:TimerEvent):void{
countdown.text = 30-qTimer.currentCount+" s remaining";
if(qTimer.currentCount==30){gotoAndStop(5)}
}
qTimer.start();
Thanks in advance.
