LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-06-2003, 10:43 PM
ScotterMonk ScotterMonk is offline
Registered User
 
Join Date: Oct 2003
Posts: 12
Rep Power: 0
ScotterMonk is on a distinguished road
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:
Actionscript:
mySendObject.sendAndLoad('https://www.blahblah.com/secure/process.asp',myReceiveObject,'POST');

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:
Actionscript:
<%
...
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)
%>
So that all works. Now I'm needing to change the process to add the following by adding two in-between steps:

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
Actionscript:
.sendAndLoad
into
Actionscript:
.Send
and
Actionscript:
.Load
so I can send to one URL (process.asp) and Load back from a different one (process_back_to_flash.asp)?

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.

Now I'm also dealing with a separate issue that hopefully some ASP pro can help me with. How do I submit (post) data TO authorize.net without building a form and needing a user to press SUBMIT? Heh I thought I was an ASP pro until now I wish I could just go from Flash submit straigh to authorize.net and that would solve THIS lil problem but I can't do that. I need to make this stop off in my asp page to do some database stuff BEFORE sending their credit card info onward to authorize.net. One way to do this I know of is to put javascript in my bodytag that autosubmit the form (with hidden vars) after zero seconds but is there a more elegant, pure server-side way to do this?

Sincerely,
Scott Swain
__________________
Scotter
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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




All times are GMT. The time now is 04:19 PM.