all groups > flash data integration > january 2006 >
You're in the

flash data integration

group:

passing a variable from asp back to flash


passing a variable from asp back to flash jordisan
1/30/2006 9:23:05 PM
flash data integration: Hi, I have an HTML form to send an email through my flash presentation and I
use the loadVariablesNum function to pass the variables to my asp script file.
All that's working fine (gladly). What I'm having a bit of trouble with is
getting the asp file to pass back to flash a string to be displayed in flash
(ie: "your email has been sent "or "there was a problem connecting to the mail
server. please try again later.") . Right now I'm using response.write
"emailStatus="+string

emailStatus is defined at the root level and my dynamic text field to display
the script results references emailStatus as a variable. My call to
loadVariablesNum looks like this:

loadVariablesNum("sendemail.asp","0","POST);

What am I not doing right? Thank you in advance.
Re: passing a variable from asp back to flash nater351
1/31/2006 9:58:52 PM
Well I don't have a answer to your question but I was wondering if maybe you
could help me out. I am trying to use flash to send a email with asp and have
not been successful. Could you please post your AS and ASP code so I can see
how its done. It would be greatly appreciated.

Nate

Re: passing a variable from asp back to flash gurthWERM
2/1/2006 2:24:56 PM
I've recently created an app that sends data and retrieves a reply from an asp
page. I used the LoadVars.sendAndLoad method using the POST method and it works
great.

As for sending an email: I've used PHP to do the job. I tweaked out the PHP
tutorial posted at http://www.sephiroth.it/tutorials/flashPHP/email/ so it did
what I needed it to do, and it works like a charm. However, in AS I added a
test to see if there was a live connection before trying to send the email. As
it is, the tutorial's code only issues an error if you can access the PHP
script via a live connection.

Hope this helps some.
Re: passing a variable from asp back to flash nater351
2/2/2006 5:05:23 PM
AddThis Social Bookmark Button