Re: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Bill Abel
I'm still having one problem. When I test this movie from within Flash, it sends both LoadVars, but when I try it from the .swf on the web server, it only sends to the .php script. Anyone see the problem? import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void {

RE: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Mike Keesey
;, response); ... to the very end of your processForm() function. ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Bill Abel Sent: Thursday, September 21, 2006 10:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] HTTP

RE: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Mike Keesey
Sent: Thursday, September 21, 2006 11:07 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] HTTP post request in the background onResponseComplete is probably being called before onMailDataResponseComplete (damn that's a long name! onMailComplete would suffice, no?), and thus

Re: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Bill Abel
- [EMAIL PROTECTED] On Behalf Of Bill Abel Sent: Thursday, September 21, 2006 10:20 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] HTTP post request in the background I'm still having one problem. When I test this movie from within Flash, it sends both LoadVars, but when I try it from

Re: [Flashcoders] HTTP post request in the background

2006-09-21 Thread Bill Abel
the calls sequentially, not simultaneously. ― Mike Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:flashcoders- [EMAIL PROTECTED] On Behalf Of Mike Keesey Sent: Thursday, September 21, 2006 11:07 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] HTTP post request

Re: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Gustavo Teider - Adobe Flash Developer
Bill Abel escreveu: How do you post an array to a server side-script without loading the script's URL in the browser. I can post data using Ruby's Net::HTTP and it works great in a rails app. I want to do the same thing in Flash. LoadVars.send will only work if I load the script's URL into

Re: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Bill Abel
Here is what I have now with only the .send method. I tried using sendAndLoad(url, null, POST)...as well as several different ways. This is my currently working version. I've commented out the parts that I need to work. The function process the phone number and then puts everything into

RE: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Mike Keesey
You should use something along these lines: import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { // Do something in response. } var request:LoadVars = new LoadVars(); // Set up variables in request. var response = new LoadVars(); response.onLoad =

Re: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Gustavo Teider - Adobe Flash Developer
Bill Abel escreveu: Here is what I have now with only the .send method. I tried using sendAndLoad(url, null, POST)...as well as several different ways. This is my currently working version. I've commented out the parts that I need to work. The function process the phone number and then

Re: [Flashcoders] HTTP post request in the background

2006-09-20 Thread Bill Abel
This works. Thanks so much! Here's the final code... // *** Post data to Sales Closer *** import mx.utils.Delegate; function onResponseComplete(success:Boolean):Void { trace(Completed); } function processForm() { //process phone number var full_phone_number =