Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,276 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,253 people online right now. Registration is fast and FREE... Join Now!




Flash Quiz Email Results

 
Reply to this topicStart new topic

Flash Quiz Email Results, Emailing results from Flash Quiz template using button

ZavStrast
10 Oct, 2008 - 11:12 AM
Post #1

New D.I.C Head
*

Joined: 10 Oct, 2008
Posts: 2

Hi. I am new to posting on here. I have a flash cs3 file that I am using the quiz template on. So when I am publishing, it will be going through AS 2.0 / player 8. The quiz is 50 multiple choice questions. Once the user sees the results of the quiz at the end, they need to click a button. The button will open up an e-mail message with their results along with the subject and to fields all ready filled in.
Problem: When file is published, the .swf file works fine and will send the mail message. But I need this file to be accessed via a web browser so it can be seen company-wide. So when I open it in a web browser, the button won’t work – nothing will pop up. Is this because the body of the email is too large to send using HTTP? Is there some kind of work-around for this? I would greatly appreciate some help with this.. Thanks!
Here’s my code on the last frame for the actions: (I will just past the code for questions 1-5 as it will be very lengthy)
CODE

stop();
var QQ1 = ((SessionArray[0].objective_id) + ": " + (SessionArray[0].result) + "%0D%0A" + "Student Response:" + (SessionArray[0].student_response) + "   " + "Correct Response:" + (SessionArray[0].correct_response) + "%0D%0A");

var QQ2 = ((SessionArray[1].objective_id) + ": " + (SessionArray[1].result) + "%0D%0A" + "Student Response:" + (SessionArray[1].student_response) + "   " + "Correct Response:" + (SessionArray[1].correct_response) + "%0D%0A");

var QQ3 = ((SessionArray[2].objective_id) + ": " + (SessionArray[2].result) + "%0D%0A" + "Student Response:" + (SessionArray[2].student_response) + "   " + "Correct Response:" + (SessionArray[2].correct_response) + "%0D%0A");

var QQ4 = ((SessionArray[3].objective_id) + ": " + (SessionArray[3].result) + "%0D%0A" + "Student Response:" + (SessionArray[3].student_response) + "   " + "Correct Response:" + (SessionArray[3].correct_response) + "%0D%0A");

var QQ5 = ((SessionArray[4].objective_id) + ": " + (SessionArray[4].result) + "%0D%0A" + "Student Response:" + (SessionArray[4].student_response) + "   " + "Correct Response:" + (SessionArray[4].correct_response) + "%0D%0A");

var body:String = (("Percent: " + (CorrectPer)) + "%0D%0A" + ("Total Correct:  " + (CorrectPer)) + "%0D%0A" + ("Total Incorrect:  " + (IncorrectPer)) + "%0D%0A" + (SessionArray[0].dateStamp) + "%0D%0A" + "%0D%0A" + (QQ1) + "%0D%0A" + (QQ2) + "%0D%0A" + (QQ3) + "%0D%0A" + (QQ4) + "%0D%0A" + (QQ5));

Here’s my code for the e-mail button:
CODE

on (release)
{
    getURL("mailto:" + "AB@abc.com" + "?subject=" + "Sales Quiz Results" + "&body=" + body;
}


User is offlineProfile CardPM
+Quote Post

ZavStrast
RE: Flash Quiz Email Results
29 Oct, 2008 - 07:51 AM
Post #2

New D.I.C Head
*

Joined: 10 Oct, 2008
Posts: 2

Any ideas on this? I still haven't gotten this to work like it should.

Thanks! smile.gif
User is offlineProfile CardPM
+Quote Post

CyanBlue
RE: Flash Quiz Email Results
30 Oct, 2008 - 06:53 PM
Post #3

D.I.C Head
Group Icon

Joined: 1 Sep, 2006
Posts: 83



Thanked: 1 times
My Contributions
Do you have an online version that we can take a look???

Mind you that getURL() with mailTo won't always work... If your user's computer is not set up with the mail client, that won't work... Some email client won't recognize the body tag and such can happen as well... So, it's best to use a server side script to send an email... That's my 2 cents on that...
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 05:13AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month