Skip to main content
Known Participant
March 30, 2017
Answered

Air for iOS SDK 25 XML/ JSON Problem.

  • March 30, 2017
  • 1 reply
  • 1349 views

Hi everyone.

First of all sorry for my english 😕😕

I have been working with Adobe Air a long time but lately I´m facing some issues with the latest releases of the SDK.

The problem is displaying data from xml or json objects, everything works fine with Air SDK 17 but when I test on some recent releases always displays an error, not even load the data at all.

I don´t know if it is a bug or something like that, the code works perfect but as I mentioned fails to load on the resent releases of the SDK.

If anyone have a solution for this will be highly appreciated.

This topic has been closed for replies.
Correct answer yachts9999

No, I'm using only http. But is the same with https thats why I guess is a bug from the latest releases.

Going ahead testing with a simple php chat is the same connection error.


OK how about testing for a Security Error:

xmlLoaderA.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);

private function securityErrorHandler(event:Event):void {

   trace("************ XML SECURITY ERROR *************");

   trace("SECURITY error occured with " + event.target);

}

Also, have you added the now required NSTransportSecurity XML to your iOS app descriptor as described here:

actionscript 3 - Flash CS6 - AS3 - Check internet connection not working at all - Stack Overflow

(Search the page for the text "Also, have you added the now required NSTransportSecurity XML to your iOS app descriptor")

1 reply

Inspiring
March 31, 2017

Can you show the code that is failing?

I am loading XML in AIR 25 SDK and it works fine.

s2hagoAuthor
Known Participant
March 31, 2017

Is it working on the device? because on emulator runs normal and everything works.

The code I´m using.

LoadPlaylist("Some URL");

private function LoadPlaylist(Uri:String):void{

  xmlLoaderA = new URLLoader();

  xmlLoaderA.addEventListener(Event.COMPLETE, onCompleteA);

  xmlLoaderA.addEventListener(IOErrorEvent.IO_ERROR, onError);

  xmlLoaderA.load(new URLRequest(Uri));

  }

private function onCompleteA(e:Event):void {

     //Do Something

}

I have tested with SDK 21,22,23,24,25 currently working with SDK 17 for iOS. on Android is working.

Inspiring
March 31, 2017

Do you get anything if you put a trace statement inside the onError handler (not shown in your code)?

private function ioErrorHandler(event:Event):void {

   trace("************ XMLERROR *************");

   trace("errorHandler: " + event);

}