Our build script generates a one line "revision.js" file which has the text "var svnRevision='xxx';" with the appropriate revision number. Then in the htm file we changed the JS call:
AC_FL_RunContent( "src", "myswf?" + svnRevision, "width", "100%", "height", "100%", "align", "middle", "id", "myswf", "quality", "high", "bgcolor", "#869ca7", "name", "Cube", "flashvars",'historyUrl=history.htm%3F&lconid=' + lc_id + '', "allowScriptAccess","sameDomain", "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer" ); Note that AC_FL_RunContent will parse out the portion after ? in the swf name and put the extension in the right place. It's a little messy, but works. This doesn't address the <noscript> but we require JS for our app so our <noscript> section doesn't have Flash content, it has an error message. Using SVN revision number is better than a random number or something time based 'cause it still allows caching in test/production. HTH, Sam ------------------------------------------- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of v.cekvenich Sent: Tuesday, November 27, 2007 7:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to force swf reload? What (java)script do people us to deploy swf files? We are using adobes .js script, but this does not reload the new swf files when we release a new version. So our users see the old swf version of our app. At the moment the only thing we tested that works is to rename the swf file each time. What do other do as a good practice? Some ant script + some javascript that loads? tia, .V