Skip to main content
Inspiring
January 31, 2008
Question

Why is nothing returned to Flash, please?

  • January 31, 2008
  • 1 reply
  • 182 views
Hello

I have a simple AS (2) script which sends variables to an ASP file, but does not get a response back:

on (release) {

loadVariables("myfile.asp",this,"POST");

//when the server responds

this.onData = function() {

if(this.output=='sent') {

status_txt = 'Thank You <%= name %>';

} else {

//if not

status_txt = 'Sorry, there is a system error';

}
}
}


The form is successfully sent and stored in a database, but I cannot tell from my Flash site that it has been sent successfully. The dynamic text box (status_txt is its instance name) does not show anything.

This is my ASP:

<%
If Err.Number <> 0 then
Response.Write "&output=fail"
Response.End
else
Response.Write "&output=sent"
End if
%>

Thank you for any help.

Steve
This topic has been closed for replies.

1 reply

robdillon
Participating Frequently
January 31, 2008
Take a look at this example code from the online help: http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002336.html

This demonstrates a reliable method for sending data and then receiving a response from the server.