?
Solved

actionscript loadvars sendandload, will not work from any Browser, but will work from Flash 8 Test Movie

Posted on 2008-11-01
1
Medium Priority
?
528 Views
Last Modified: 2013-11-11
Have seen this problem's description elsewhere but the solutions do not work for me.

There is nothing happenning in the apache log therefore guess it is some sort of security violation but could be wrong.

Have tried System.security.allowDomain ("*"); to no avail.

Code looks something like this ..

public function sendEmail () {
            var cgiURL = "http://www.zzzzzzzzzzzzzzzzz.com/cgi-sys/FormMail.cgi";
            trace ("x" + this.dataOut.contentType);
            this.dataIn.onLoad = function (success:Boolean):Void  {
                  trace ("no Error loading content.");
            };
            this.dataIn.onData = function (src:String) {
                        // Just hijacking this text field to display the results ..
                  _root.emailH.page.addressArea.text = src;
            };
            this.dataIn.onHTTPStatus = function (httpStatus:Number) {
                  this.httpStatus = httpStatus;
                  if (httpStatus < 100) {
                        this.httpStatusType = "flashError";
                  } else if (httpStatus < 200) {
                        this.httpStatusType = "informational";
                  } else if (httpStatus < 300) {
                        this.httpStatusType = "successful";
                  } else if (httpStatus < 400) {
                        this.httpStatusType = "redirection";
                  } else if (httpStatus < 500) {
                        this.httpStatusType = "clientError";
                  } else if (httpStatus < 600) {
                        this.httpStatusType = "serverError";
                  }
                       // Just hijacking this to display the results ..
                  _root.emailH.page.messageArea.text = this.httpStatus + " - " + this.httpStatusType;
            };
            this.setDataOut ();
            this.dataOut.contentType = "application/x-www-form-urlencoded";
            this.dataOut.sendAndLoad (cgiURL, this.dataIn, "POST");
            trace ("x" + this.dataOut.contentType);
      }  

It works from flash test movie but not from any browser and  returns no status codes (or text) ..

Thanks, ChrisColeman.
0
Comment
Question by:ChrisColeman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
ChrisColeman earned 0 total points
ID: 22857487
Ok, I solved it myself ..

The local sandbox allowed cross domain access to the cgi script.

The local server did not.

When installed in the same domain as the cgi script, all works ok ..

Many Thanks,

ChrisColeman.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question