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;
}