2 Replies Latest reply on Jul 2, 2007 1:12 PM by kglad

    OnHTTPStatus - for firefox

    sathishkumarr
      I am try to use onHTTPStatus function in Flash 8. I get the correct httpStatus number in 'IE', But whenever I use Firefox i don't get the correct httpstatus number, I get always '0' (Like server not running) only. Any body know how to solve this issues. I have attach my code also

      Code

      var myLoadVars:LoadVars = new LoadVars();
      var server_reply:XML = new XML();
      server_reply.onHTTPStatus = function(httpStatus:Number)
      {
      trace(httpStatus);
      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";
      }
      };
      myLoadVars.sendAndLoad("../gateway/proxy/gatewaydns", server_reply, "POST");
      __________________________________________________________________________________________ ___

      Output for IE
      200

      Output for firefox
      0