|
From: Mattastic on 26 Oct 2005 06:14 Hi, Is there anyway this can be done by modifying the quiz templates. At the end of the quiz I need to email the results. Thanks
From: Motion Maker on 26 Oct 2005 11:40 Yes. For example on quiz template 1 on frame 8 you can add a frame script with a LoadVars object or XML object and sent the values in the text fields on that page to a server side script that will email you unless you want to rely unreliably on user with getURL and mailto. You will need to give the text fields an instance name such as total_correct_txt, total_incorrect_txt and total_score_txt and use the text properties to populate your sending variables. -- Lon Hosford www.lonhosford.com May many happy bits flow your way! "Mattastic" <webforumsuser(a)macromedia.com> wrote in message news:djnkv3$jfl$1(a)forums.macromedia.com... Hi, Is there anyway this can be done by modifying the quiz templates. At the end of the quiz I need to email the results. Thanks
From: Mattastic on 14 Nov 2005 05:12 Hi, Thanks for your reply, can you possibly give me more information on this? Do I store the answers in some sort of session variable? Do i pass the answer from frame to frame? Thanks
From: Motion Maker on 14 Nov 2005 10:46 I believe they keep the scores for your as a total correct or incorrect. There is some documentation in the F8 docs under "Creating E-learning Content". The last frame might be something like this where the server script would send you the email. my_lv:LoadVars = new LoadVars() my_lv.correct = QuizTrack.total_correct my_lv.incorrect = QuizTrack.total_wrong my_lv.LoadVars.send("nameOfServerScript") If you modify to add getting a student name and quiz name and storing in your own variables, you would add to the list of variables to send. my_lv:LoadVars = new LoadVars() my_lv.studentname = studentName my_lv.quizname = quizname my_lv.quizdate = new Date() my_lv.correct = QuizTrack.total_correct my_lv.incorrect = QuizTrack.total_wrong my_lv.LoadVars.send("nameOfServerScript") As for server side scripts that send you email you need to choose one and explore its email features. Here is a sample of sending an email using Flash LoadVars and PHP that I use in Flash seminars: http://www.hosfordusa.com/ClickSystems/courses/flash/examples/Flash2PHPMail/Flash2PHPMailEx01.php http://www.hosfordusa.com/ClickSystems/courses/flash/examples/Flash2PHPMail/Flash2PHPMailEx02.php Assuming you can use PHP, you could post more questions and perhaps suggest how to modify them to fit the Flash quiz. However if you look at the second example of PHP we might with the above AS code modify as follows $emailBody = "Student quiz results\n"; $emailBody .= "Student name = $_REQUEST['studentname']\n"; $emailBody .= "Quiz name = $_REQUEST['quizname']\n"; $emailBody .= "Quiz date = $_REQUEST['quizdate']\n"; $emailBody .= "Correct = $_REQUEST['correct ']\n"; $emailBody .= "Incorrect = $_REQUEST['incorrect ']\n"; -- Lon Hosford www.lonhosford.com May many happy bits flow your way! "Mattastic" <webforumsuser(a)macromedia.com> wrote in message news:dl9ntn$5q5$1(a)forums.macromedia.com... Hi, Thanks for your reply, can you possibly give me more information on this? Do I store the answers in some sort of session variable? Do i pass the answer from frame to frame? Thanks
From: Mattastic on 22 Nov 2005 12:00 Thanks for all your help with this Lon. I have setup a basic coldfusion page in effort to get it working. My last frame now has: stop(); my_lv.LoadVars = new LoadVars(); my_lv.correct = QuizTrack.total_correct; my_lv.incorrect = QuizTrack.total_wrong; my_lv.LoadVars.send("http://www.halesowen.ac.uk/sendit.cfm"); However, it does not work. Any ideas? Thanks again
|
Next
|
Last
Pages: 1 2 3 4 5 6 Prev: SWF contains multiple copies of a sound item Next: FlashPlayer 8 what the #$#@! |