Quiz with an action at end

Hi there,
I am writing a module and I have a section in this flash file where a quiz comes up and if you don’t click on the right answer it tells you to try again. If you click on the right answer it will load the next swf file. But I can’t get this last part to work. The quiz is within an xml file. I’ve included the code below for you guys to see and maybe help me. Thanks.

var current:Number = 0;
var qbox:Sprite = new Sprite;
var quiz:XML;
var xloader:URLLoader = new URLLoader();

qbox.x = 10;
qbox.y = 125;
this.addChild(qbox);

xloader.addEventListener(IOErrorEvent.IO_ERROR, onError);
xloader.addEventListener(Event.COMPLETE, onLoaded);
xloader.load(new URLRequest(“quiz1.xml”));

function onError(e:IOErrorEvent):void {
trace(“An error occured when attempting to load the XML:\r” + e.text);
}

function onLoaded(e:Event):void {
quiz = XML(e.target.data);
displayQuestion();
}

function displayQuestion():void {
while (qbox.numChildren > 0) {
qbox.removeChildAt(0);
}
question_txt.text = quiz.item[current].question;
var starty:Number = 0;
for each (var answeritem:XML in quiz.item[current].answer) {
var ansobj:Sprite = new Answer();
ansobj.y = starty;
ansobj.answer_txt.text = answeritem;
if (answeritem.@correct == “true”) {
ansobj.correct = true;
}
qbox.addChild(ansobj);
starty += 55;
}
feedback_txt.text = “”;
}

function setClick(correct:Boolean):void {
if (correct) {
feedback_txt.text = "Correct! " + quiz.item[current].explanation;
} else {
feedback_txt.text = “Sorry, that’s wrong. Try again.”;
}
}

So where it says “if(correct) {” on the bottom, I want the file this file to go to the next swf file not say “Correct!”.