View Full Version : sendAndLoad to coldfusion problems.

09-05-2006, 11:21 AM

I'm attempting to place a button at the end of a flash movie that sends some variables to a .cfm page.

Flash Code

on (release) {
testcf = new LoadVars() ;
testcf.onload = function () {
testcf.Score1 = score1.text;
testcf.Score2 = score2.text;
testcf.Score3 = score3.text;
testcf.sendAndLoad("cfmail.cfm", testcf, "POST")

coldfusion code

<cfmail to="[email protected]" from="[email protected]" subject="Quiz Results">

the trace in the actionscript relays this bit of information:
Score3=66%2E6666666666667&Score2=1&Score1=2&%3Ccfoutput%3E%0D%0A%3Ccfmail%20to=%22myemail%40em ail%2Ecom%22%20from%3D%22myemail%40email%2Ecom%22% 20subject%3D%22Quiz%20Results%22%3E%0D%0A%23Score1 %23%0D%0A%23Score2%23%0D%0A%23Score3%23%0D%0A%0D%0 A%0D%0A%0D%0A%3C%2Fcfmail%3E%0D%0A%0D%0A%0D%0A%0D% 0A%3C%2Fcfoutput%3E%0D%0A&onload=%5Btype%20Function%5D

But alas no email is sent, i managed to successfully send info to the same cfm page using the "send" method, but for some reason i cant see to get this producing the same results minus the new page that the send option creates.

any help much appreciated,