If I follow that code properly you're adding a 'no-cache' value to the
headers. I'm not sure if that's the right way to do it.
Try this. Add some query parameter to the end of your URL that has a
unique value (like the current time in milliseconds). So something
like:
: [Flashcoders] SWF Only Loads Once
XML almost always caches. Use a noCache param.
var path:String = some.xml;
var d:Date = new Date();
var p:String = (path.indexOf(?) -1) ? noCache= : ?noCache=;
var noCache:String = (_root._url.indexOf(http://;) -1) ? p +
d.getTime() : ;
var xmlPath:String = path
Thanks guys. I added a cache-busting param to the request, but it didn't fix
the issue. Here's my method:
protected function invoke(resource:String, variables:URLVariables,
successHandler:Function,
errorHandler:Function = null):void {
variables.api_key =
Hi all,
If you check out http://tinyurl.com/2yctf9 in Internet Explorer on a PC
(using at least 9r16), and click on a listen button, everything works fine--
the first time. If you close the pop-up player, then the next time, the SWF
will not draw, which is a combination of my bad error handling
XML almost always caches. Use a noCache param.
var path:String = some.xml;
var d:Date = new Date();
var p:String = (path.indexOf(?) -1) ? noCache= : ?noCache=;
var noCache:String = (_root._url.indexOf(http://;) -1) ? p +
d.getTime() : ;
var xmlPath:String = path + noCache;
5 matches
Mail list logo