Re: [Flashcoders] SWF Only Loads Once

2007-04-02 Thread Andy Herrman
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:

RE: [Flashcoders] SWF Only Loads Once

2007-03-30 Thread Adrian Lynch
: [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

RE: [Flashcoders] SWF Only Loads Once

2007-03-30 Thread Daniel Thompson
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 =

[Flashcoders] SWF Only Loads Once

2007-03-29 Thread Daniel Thompson
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

RE: [Flashcoders] SWF Only Loads Once

2007-03-29 Thread Steven Sacks | BLITZ
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;