Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash to either .asp or a databse?

Status
Not open for further replies.

robertaidy

Technical User
Feb 23, 2007
14
0
0
GB
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top