Could anyone help me out here? The first question displays the proper event but the 2nd and 3rd buttons, when press, do not display anything. Any help would be wonderful. Thank you.
stop();
var optionsArray:Array = new Array(option1, option2, option3);
var loopCount:int = 0;
for(loopCount = 0; loopCount < optionsArray.length; ++loopCount){
optionsArray[loopCount].addEventListener(Event.CHANGE, checkboxInputChange);
}
function checkboxInputChange(e:Event):void
{
if(e.currentTarget.selected == true){
for(loopCount = 0; loopCount < optionsArray.length; ++loopCount){
if(optionsArray[loopCount] != e.currentTarget){
optionsArray[loopCount].selected = false;
}
}
}
}
updateView();
function updateView():void
{
question.text = “There are some signs that there is potential conflict here, what do you think is the underlying cause?”;
}
nextButton.visible = false
option1.addEventListener(MouseEvent.MOUSE_DOWN, goNext1);
function goNext1(e:MouseEvent):void
{
if(!option1.selected == true){
answer.text = “”;
answer.text = “Correct!”;
nextButton.visible = true;
option2.enabled = false;
option3.enabled = false;
}
import flash.events.MouseEvent;
nextButton.addEventListener(MouseEvent.CLICK, powerClick4);
function powerClick4(Event:MouseEvent):void {
gotoAndPlay(425);
option2.addEventListener(MouseEvent.MOUSE_DOWN, goNext2);
function goNext2(e:MouseEvent):void
{
if(!option2.selected == true){
answer.text = “”;
answer.text = “Sorry. Try again.”;
option2.enabled = false;
}
option3.addEventListener(MouseEvent.MOUSE_DOWN, goNext3);
function goNext3(e:MouseEvent):void
{
if(!option3.selected == true){
answer.text = “”;
answer.text = “Sorry. Try again.”;
option3.enabled = false;
}
}
}
}
}