# Flash 8 onHTTPStatus for Firefox

**URL:** <https://forum.kirupa.com/t/flash-8-onhttpstatus-for-firefox/222811>\
**Category:** flash\
**Created:** [April 17, 2007, 7:27am UTC](https://forum.kirupa.com/t/flash-8-onhttpstatus-for-firefox/222811 "2007-04-17T07:27:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arrsathish](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@arrsathish](https://forum.kirupa.com/u/arrsathish)\
**Post date:** [April 17, 2007, 7:27am UTC](https://forum.kirupa.com/t/flash-8-onhttpstatus-for-firefox/222811/1 "2007-04-17T07:27:41Z")

</div>

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
