Rob,
I got the following advise from another forum, but it does
not work. Perhaps it will provide a clue for you to take to the
next level.
******************************
Add the following code to final frame:
/ set the number of correct answers needed to load the next
test, 5 in our example
if (QuizTrack.total_correct>5) {
// message displayed when the test is passed
finalMessage.text = "Well done you successfully passed the
test";
// Label of the button when the test is passed
checkResult.label = "Next Test";
checkResult.onRelease = function() {
unloadMovie(_root);
// the line below loads the new test, change the name of the
swf accordingly
loadMovie("nextTest.swf", _root);
};
} else {
// message displayed when the test is not passed
finalMessage.text = "Please retake the the test";
// Label of the button when the test is not passed
checkResult.label = "Retake test";
checkResult.onRelease = function() {
unloadMovie(_root);
// the line below reload the current test, change the name
of the swf accordingly
loadMovie("FrontDesk_LearningByExam.swf", _root);
};
}
******************************
I've added the above code to the final frame of the frame
action layer (the one with the name and date scripts) and there is
no effect whatsoever. The quiz runs as if it were unchanged.
In order to help matters along, I've changed the name and
questions in the quiz. The quiz questions now tell you what to do
for them to be answered correctly, or deliberately incorrectly. The
first quiz is set to show 5 questions and is called scaffold1. The
second quiz is set to present 10 questions, and is called
scaffold2. I have the .swf/.html posted at
http://mcnydev1/training/administrat...scaffold1.html
Scaffold2.swf is at the same directory level as scaffold1 and
its .html holder.
I have posted a .zip of the two .fla's with the above script
added (along with the .swf's and the .html) at
http://www.mywebniche.com/test/scaffoldingTests.zip.
Hope this helps.
regards,
Stevenjs
__________________________
--Stranger in a Strange Land