« Return to Thread: Problem with XML.onHTTPStatus in Flash 8

Problem with XML.onHTTPStatus in Flash 8

by Julien Couvreur :: Rate this Message:

Reply to Author | View in Thread

Hi,

I'm compiling a simple class that uses the XML object to some data
from the server. I got the XML.onLoad working fine, but I want to also
handle some special status codes such as 302, 401, etc.

The problem I have is that MTASC chokes on responseXML.onHTTPStatus.
The error message when compiling the code below is "type error XML
have no field onHTTPStatus"

Any help would be appreciated.

Thanks a lot,
Julien



                var responseXML:XML = new XML();
               
                responseXML.onHTTPStatus = function(httpStatus:Number) {
               
                }
               
                responseXML.onLoad = function(success) {
                        ...

--
MTASC : no more coffee break while compiling

 « Return to Thread: Problem with XML.onHTTPStatus in Flash 8