Distinction between IO error and refusing to authenticate using HTTPService (ActionScript 3.0)

Posted by Jonas on Stack Overflow See other posts from Stack Overflow or by Jonas
Published on 2010-04-02T22:02:12Z Indexed on 2010/04/02 22:03 UTC
Read the original article Hit count: 396

I'm using HTTPService (tried with URLLoader but result is the same) to load XML file. Furthermore, XML file is secured with basic HTTP authentication.

There are two kind of events I want to separate:

  • IO Error
  • User refuses to authenticate (pressing cancel on credential request dialog)

The problem is that these two kind of events looks exactly the same (401 Status code is not presented). Is there any way to find out whether IO error occurred or authentication failed?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about httpservice