Problem with XML.onHTTPStatus in Flash 8

View: New views
3 Messages — Rating Filter:   Alert me  

Problem with XML.onHTTPStatus in Flash 8

by Julien Couvreur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Problem with XML.onHTTPStatus in Flash 8

by Eric Priou :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey Julien,


> 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"
Help yourself.
Go to the std directory of MTASC and add the missing headers to the
XML.as intrinsic file.
That's it.

Something like :
public function onHTTPStatus = function(httpStatus:Number) ;

HTH
-----------
erixtekila
http://blog.v-i-a.net/


--
MTASC : no more coffee break while compiling

Re: Problem with XML.onHTTPStatus in Flash 8

by Julien Couvreur :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Got it! That worked.

Thanks a lot,
Julien

On 12/19/05, erixtekila <erixtekila@...> wrote:

> Hey Julien,
>
>
> > 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"
> Help yourself.
> Go to the std directory of MTASC and add the missing headers to the
> XML.as intrinsic file.
> That's it.
>
> Something like :
> public function onHTTPStatus = function(httpStatus:Number) ;
>
> HTH
> -----------
> erixtekila
> http://blog.v-i-a.net/
>
>
> --
> MTASC : no more coffee break while compiling
>

--
MTASC : no more coffee break while compiling