Skip to main content
Participating Frequently
July 4, 2011
Question

loading xml url throws error

  • July 4, 2011
  • 1 reply
  • 805 views

Hello,

I'm trying to create iphone app.

When I try to load xml url from desktop emulator it works like a charm.

But when I debug on the iphone device it throws error.

Error #2032

I have setup a crossdomain.xml file but that doesn't fix the issue.

I have no idea what to do from now?

I'm using the latest flash builder 4.5.1 and air 2.7 sdk i think.

Hope someone knows what to do

Thanks.

This topic has been closed for replies.

1 reply

Participating Frequently
July 6, 2011

Same problem that I have here: http://forums.adobe.com/thread/873623?tstart=0

Good to know that iPhone has the same problem. Now I'm sure it's a problem with AIR managing active connections.

Its a problem in AIR for mobile that is there since the begining, and that every other app in the android market has but let me know if you find a work around. I'll do the same.

Since you have an iPhone, look for the AIR apps available and see if they work. I doubt it

chris.campbell
Legend
July 11, 2011

Forwarding to the iOS team for their review.

Chris

Participating Frequently
July 12, 2011

Hi,

Could you specify where is the XML located? I suspect you are getting this error because you are doing something like:

xmlLoader = new URLLoader();

xmlLoader.load(new URLRequest("<xml name>"));

Is the xml file located in the bin-debug directory of your project?

You should use the url property to access file objects that reference applicationDirectory, similar to http://forums.adobe.com/message/3795627#3795627.

See http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html#applicationDirectory

To verify that this is indeed the problem, replace the xml url with a xml located on web. It should work.

Hope this helps.

Thanks,

Sanika