1009 error :S

 

stop();
var myScore:Number = 0;
var myBadScore:Number=0;



function rightClick(myevent:MouseEvent):void {
	
	myScore += 1;
	score_txt.text=String(myScore);	
	
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
	
}


function wrongClick(myevent:MouseEvent):void {
	
	myBadScore += 1;
	mybadscore_txt.text=String(myBadScore);
	if(score_txt.text=="5"){
		mybadscore_txt.text="0";
	}
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
}



function nextPage(myevent:MouseEvent):void {
	this.nextFrame();
	
	wrong1_btn.mouseEnabled=true;
	wrong2_btn.mouseEnabled=true;
	right_btn.mouseEnabled=true;
	   if(inputtext1.text=="cevap")
 {
    myScore += 1;
	score_txt.text=String(myScore);
 }
}


next_button.addEventListener(MouseEvent.CLICK, nextPage);
right_btn.addEventListener(MouseEvent.CLICK, rightClick);
wrong1_btn.addEventListener(MouseEvent.CLICK, wrongClick);
wrong2_btn.addEventListener(MouseEvent.CLICK, wrongClick);

i couldnt correct this error. However, fill in the blank quiz doesnt run? Why doesnt run the script?

stop();
var myScore:Number = 0;
var myBadScore:Number=0;



function rightClick(myevent:MouseEvent):void {
	
	myScore += 1;
	score_txt.text=String(myScore);	
	
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
	
}


function wrongClick(myevent:MouseEvent):void {
	
	myBadScore += 1;
	mybadscore_txt.text=String(myBadScore);
	if(score_txt.text=="5"){
		mybadscore_txt.text="0";
	}
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
}

function textbutton(myevent:MouseEvent):void {
	
	
   if(inputtext1.text=="cevap")
 {
	myScore += 1;
	score_txt.text=String(myScore);
 }
}


function nextPage(myevent:MouseEvent):void {
	this.nextFrame();
	
	wrong1_btn.mouseEnabled=true;
	wrong2_btn.mouseEnabled=true;
	right_btn.mouseEnabled=true;

}


text_button.addEventListener(MouseEvent.CLICK, textbutton); 
next_button.addEventListener(MouseEvent.CLICK, nextPage);
right_btn.addEventListener(MouseEvent.CLICK, rightClick);
wrong1_btn.addEventListener(MouseEvent.CLICK, wrongClick);
wrong2_btn.addEventListener(MouseEvent.CLICK, wrongClick);

i changed mycodes.
First i created scoretext,button,textbox in another fla. I tried codes below:

function textbutton(myevent:MouseEvent):void {
	
	
   if(inputtext1.text=="cevap")
 {
	myScore += 1;
	score_txt.text=String(myScore);
 }
}

text_button.addEventListener(MouseEvent.CLICK, textbutton);

it runs. But it doesnt work when i add to quiz codes.
Why?

i have solved the problem. :smiley:

stop();
var myScore:Number = 0;
var myBadScore:Number=0;



function rightClick(myevent:MouseEvent):void {
	
	myScore += 1;
	score_txt.text=String(myScore);	
	
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
	
}


function wrongClick(myevent:MouseEvent):void {
	
	myBadScore += 1;
	mybadscore_txt.text=String(myBadScore);
	if(score_txt.text=="5"){
		mybadscore_txt.text="0";
	}
	next_button.visible=true;
	wrong1_btn.mouseEnabled=false;
	wrong2_btn.mouseEnabled=false;
	right_btn.mouseEnabled=false;
}




function nextPage(myevent:MouseEvent):void {
	this.nextFrame();
	
	wrong1_btn.mouseEnabled=true;
	wrong2_btn.mouseEnabled=true;
	right_btn.mouseEnabled=true;

}
function textbutton(myevent:MouseEvent):void {
	
	
   if(inputtext1.text=="cevap")
 {
	myScore += 1;
	score_txt.text=String(myScore);
 }
   if(inputtext1.text!="cevap")
 {
	myBadScore += 1;
	mybadscore_txt.text=String(myBadScore);
 }
}

next_button.addEventListener(MouseEvent.CLICK, textbutton); 
next_button.addEventListener(MouseEvent.CLICK, nextPage);
right_btn.addEventListener(MouseEvent.CLICK, rightClick);
wrong1_btn.addEventListener(MouseEvent.CLICK, wrongClick);
wrong2_btn.addEventListener(MouseEvent.CLICK, wrongClick);