Solved

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

Posted on 2008-11-01
1
518 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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 …

735 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