robertaidy
Technical User
Hi, can anybody help me? I have developed a quiz using one of the Flash templates with the some added extras. I have now been asked if I can export the data from the results page into either a database or a .asp page, which of these would be easier? Further to that been new to this what code would I need to add. This is the code from my results page as it stands,
//ensure the frame you wish to print ha #P as a label
print_btn.onRelease = function()
{
getURL("print:", "_currentframe");
}
var tally:Number;
var Score_temp:Number;
var score:Boolean = true;
var results_str:String;
var wordList_array = new Array("qwerty1!", "uytrew1!", "trehug3!");
var randomNumber:Number = 0;
var selectedWord_str:String = "";
//select a word at random
randomNumber = Math.round(Math.random()*(wordList_array.length-1));
selectWord_str = wordList_array[randomNumber];
//trace (selectWord_str)
tally = (QuizTrack.total_correct + QuizTrack.total_wrong);
score_temp = ((QuizTrack.total_correct/tally)*100);
score = (score_temp >=70);
//trace (score);
if (score == true) {
results_txt = "Congratulations you have PASSED Your Level Password is:-" + (selectWord_str);
} else {
results_txt = "Sorry - You Failed - Please Try Again";
}
If possible using the Print button as a submit button.
Any help would be greatly appreciated.
//ensure the frame you wish to print ha #P as a label
print_btn.onRelease = function()
{
getURL("print:", "_currentframe");
}
var tally:Number;
var Score_temp:Number;
var score:Boolean = true;
var results_str:String;
var wordList_array = new Array("qwerty1!", "uytrew1!", "trehug3!");
var randomNumber:Number = 0;
var selectedWord_str:String = "";
//select a word at random
randomNumber = Math.round(Math.random()*(wordList_array.length-1));
selectWord_str = wordList_array[randomNumber];
//trace (selectWord_str)
tally = (QuizTrack.total_correct + QuizTrack.total_wrong);
score_temp = ((QuizTrack.total_correct/tally)*100);
score = (score_temp >=70);
//trace (score);
if (score == true) {
results_txt = "Congratulations you have PASSED Your Level Password is:-" + (selectWord_str);
} else {
results_txt = "Sorry - You Failed - Please Try Again";
}
If possible using the Print button as a submit button.
Any help would be greatly appreciated.