Solve Cache Problems when
you Load a Movie
by ilyas usal (following one of Upu's posts)
When you load a movie, variables, or a text, what
you load is put in the cache of your computer by your browser. This can cause
problems because if you load files, chances are that you are going to update
them quite often, but Flash will look for the files in the cache, that is to say
the old ones.
The solution is to load your files with a unique identifier. Example:
myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);
This works also with LoadVariables, LoadMovieNum and LoadVariablesNum.
Hope this tutorial helped. If you have any
questions, please post them on the forums at
//www.kirupa.com/forum/

|