flash TO asp TO authorize.net TO asp to FLASH
Hi Obi Wans -
I've done a lot of searching and reading on this forum and similar forums and did learn some things but still have this little problem:
I've set up a flash/ASP combo that works so far but I need to take it a step further and have a question about how.
Right now in Flash I have a form the user fills out and then I use the following statement (a1) to send the form data to my ASP page:
In my ASP page I use a few request.form("fieldname") to get the data and then mess with it (save to database, etc) and finally, at the end, I send a response back to Flash by just doing this (b1) at the end of my ASP page:
<% ... Response.write ("&s_msg=" & msg) Response.Write ("&d_purchase=" & date()) Response.Write ("&s_key=" & s_key) Response.write ("&b_approved=" & true) Response.write ("&b_registered=" & true) %>
In my ASP where I process the user data, part of that process is to do a secure https post to a credit card verification service (Authorize.net Advanced Integration Method) and then wait for response from authorize.net, and finally, send those response.writes you see above back to Flash.
Summary of this revised process: (a2) flash sent form data to ASP (b2) ASP sent form data to authorize.net (c2) authorize.net sent form data back to ASP (d2) WHAT I WANT: server to then send those response.writes back to Flash.
So my question is this: How does the server know when to turn control back over to Flash?
In (b2) when we use a form submit to send data to authorize.net, our ACTION tag tells the data to go to authorize.net but then we get back a response and (1) will that response go to my ASP page or to my Flash page? Finally, at (d2) do I just do the code like I did in demo code at top (b1) and those response.writes will send their data to Flash instead of back to authorize.net?
is it as simple as separating out my
Thanks for any advice you all can give! I'm going to go ahead and TRY to make it work this way and see what happens but while I'm building these pages I hope someone will get back to me in case I'm going in the wrong direction. I really want to better understand how the response object turns control back over to who/when.
|Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)|
|Thread||Thread Starter||Forum||Replies||Last Post|
|ASP and Flash||KyleLoughlin||Actionscript 2.0||0||07-23-2008 09:53 AM|
|Flash Encrypt protects action script||sintrix.com||New Softwares||4||08-08-2007 05:07 AM|
|asp to flash||ehtillma||Newbies||2||05-16-2007 11:50 AM|
|Flash / ASP Contact Form||sofoklis||Newbies||1||05-11-2007 10:03 PM|
|Flix 8 for Flash 8 is available||on2com||Flash Video||1||09-27-2005 09:54 PM|