2 Replies Latest reply on Aug 14, 2009 3:48 PM by MattNico

    Pass POST data from AIR app to default browser


      I am working on an AIR app which uses the following to keep all requests for our app's content within the app. Any other requests for external URLs will be opened in the default browser.


      Our app has a shopping cart in it. When I send it to Google Checkout the POST data does not come with it. How do I keep the POST data with the request?


      Here is the file I have setup to handle the URL Requests.


      package {
          import flash.html.HTMLHost;
          import flash.html.HTMLLoader;
          import flash.html.HTMLWindowCreateOptions;
          import flash.net.URLRequest;
          import flash.net.URLRequestDefaults;
          import flash.net.navigateToURL;
          import mx.controls.Alert;
          public class HTMLHostImplementation extends HTMLHost{
              override public function updateLocation(locationURL:String):void
                  var url = locationURL;
                  var protocol = url.split("/");
                  if(protocol[2] == "ROOT-APP-URL")
                      var urlReq = new URLRequest(locationURL);
                      var htmlLoader:HTMLLoader = new HTMLLoader();
                      var urlReq = new URLRequest(locationURL);