PDA

View Full Version : swf not refreasing in firefox


charliem
09-10-2007, 02:49 PM
Hi there. I am using swfobject and a random number generator for force a refresh for an xml driven slideshow for my website. ( the slides are updated weekly). Anyway, this appears to have done the trick in IE, but nothing has changed in Firefox...it is still showing the old images, even though they dont exist.

i know I can refresh my browser, but I need it to automatically do this for visitors to my website.

I dont want to show up in a search engine, but would be more than happy to pass along URL's to show. here is an example of the code.

<div id="flashMain">
<img src="images/hdr/flash_hdr.jpg" border="0" usemap="#Map2"> </div>

<script type="text/javascript">
var soMain = new SWFObject("slideshowa.swf", "mainSWF", "514", "340", "7", "#FFFFFF");
soMain.addVariable("ver", Math.floor(Math.random() * 999));
soMain.write("flashMain");
</script>


THANKS! I have been going nuts trying to figure this out.

_Aerospace_Eng_
09-10-2007, 04:29 PM
I don't think its the swf file that is caching. It might be the xml file. Do you have the fla file that calls the xml file into the flash? Adding a random number onto the end of the url to the xml file in the fla file might update the slideshow.