I’m thinking its the preloader script that causes it, but I read on the forums… this
=================
If one is using the loadMovie or loadVariable commands, you will note problems with updates. Namely, browsers keep both txt and swf files in their cache, so as not to have to reload them again and again from the server. This is great as long as you don’t update often, but if you did update regularly, visitors who came often to your site would not see new data until those files had been purged from the browser’s cache. Since most people don’t mess around with their cache, this can happen quite regularly.
The answer… and as far as this book is concerned the “only” solution, is the following.
The way to solve this is to make Flash always ask for the same file but with a different name. The way to do this is to append a query string to the end of the text file’s name each time Flash executes a call for outside data. For example:
on(release){
loadVariablesNum (“flashdata.txt?x=55”,0);
}
what this is telling the browser is, load “flashdata”, but also querry that txt file for a variable x. This will not write anything to the text file, and as long as you have nothing in the text file which uses x, it wont matter to the flash player. It will of course read the file, and simply not do anything with the variable.
Of course there is a problem. Now that youv’e loaded it with this querry, you can’t use x=55 again. So… here is the solution for that.
on(release){
rn = Math.round(Math.random()*1000000);
loadVariablesNum (“flashdata.txt?reload=”+rn,0);
}
What this will do is add a random number 1 in a million to be precise, to the end of the querry string. Hence, you’re viewer will only have a one in a million chance of not recieving the new data. The million is arbitrary and can be whatever you like. So is the variable named “reload”.
Now to the problem. The reason for the cache is that most people do not want to re download something every time they open a page. If they’ve done so once, they shouldn’t have to over and over again.
As a work around I suggest using the first method for things that you are only going to update once in a while. Each time you update, just be sure to update all of the querry strings in your file to give them a new number.
=====================
Was wondering how I could inpliment that into my site…
and the person I’m doing it for dosne’t want me really spreading it out yet so I’ll priv msg ya the url if ya want to see