Stopping the viewer from seeing cached files on their system

I recently launched my site but due to it being in its infancy there are still a lot of revisions happening to the flash files. I would like to know the easiest way to stop the viewer seeing the old cached files on there hard disk and instead see the new files I have amended without having to rename them. I know there must be an easy solution?

Thanks in advance

Sany

http://www.kirupa.com/developer/actionscript/tricks/cache.htm

Thanks!! :slap forehead smilie:

[rant] Stupid IE, it never clears the flash cache… ****ed Microsoft…[/rant]

why would you want the flash cache cleared though (for the most part)? from the viewpoint of the user, you would have to reload the movie every time you visit, (which would be a huge pain for larger movies).

and from the viewpoint of the designer/webmaster, the extra bandwidth needed would making hosting more expensive. i think it’s good the way ie works now in that it’s up to the designer to specify whether it’s cached or not.

because if you change your swf a lot because some things wont work you sometimes cant see the difference… then you wont know if the swf you’re playing is the old or new version…

that’s why you’d use the identifier script which i already linked to and refered to in my previous post (being that using it is up to the designer).

I just tried it but dont seem to be able to get it to work, could someone check my code, and see if its correct or does this http://www.kirupa.com/developer/act…ricks/cache.htm not work with loadText ?

myIdentifier=Math.round(Math.random()*10000);
loadText = new loadVars();
loadText.load(“http://www.mysite.com/news.txt?uniq=+myIdentifier,1”); loadText.onLoad = function() {
scroller.htmltext = this.Newstext;
};
function loadAndPlay(args) {
_root.content.loadMovie(args.split(",")[0]);
_root.transition.gotoAndPlay(args.split(",")[1]);
}