views:

247

answers:

3

In AIR on Mac, when I send login creds to a service and they're incorrect, AIR displays a native popup window to try logging in again without dispatching an error event. Twitter provides a header (suppress_response_codes=true), which returns any error as a status 200 with the error message. I'm using HTTPService to connect to a service without a header like this. Are there any properties or headers I can send to avoid this popup?

A: 

If you handle all the events in your class the message will not appear to the user. Try to declare every event-related methods.

goo
I have all events handled and it still prompts the popup. Any other ideas?
A: 

I have exactly the same problem with Timy when consuming the Basecamp API. Before I used a PHP proxy to avoid the basic authentication problems. But when I connect directly from AS3/Flex I also get this problem.

How did you do it before in DestroyTwitter?

I used the suppress_response_codes=true header in the Twitter API to prevent there. I got the fix though.
+1  A: 

I was able to prevent the popup window by switching to URLLoader and using URLRequest.authenticate=false.