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 :)
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 :)