PDA

View Full Version : Query strings don't work on desktop after installing AIR


matbury
05-13-2008, 02:41 PM
Hey guys,

An 'interesting' thing happened...

I wrote a class, months ago, which has worked fine with every application I've made that uses XML since then. It's an integral part of my class library.

I've just installed AIR and I really like it. The problem is, when I came to publishing Flash SWFs again for regular projects, something odd has happened. Now the XML loader class doesn't work.

I tracked it down to this: My XML loader class uses a URL + "?" + Math.random(); to prevent the browser from using the XML file in the cache if there is one.

If I remove the query string it works again. Has anyone else had a similar problem?

Looking forward to your replies!

Matt :)

evride
05-13-2008, 05:26 PM
i've had the same problem.

you can use a URLRequest setting named useCache. you can just set that to false;
its an AIR only feature.