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 {
;,
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
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
-
[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
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
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
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
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 =
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
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 =
10 matches
Mail list logo