This question is regarding a swf file only (no html is involved). I’m trying to make a “application” in flash cs4. On a local computer a file is running (ews.swf). Inside this .swf, I am loading a file called warning.swf which is placed on an external server. I am loading this file as followed; loadMovieNum(“http://www.......com/Warning.swf", 3); this file gives the “viewer” the possibility to get live warnings regarding weather information (threats). The file get the command to reload by using the following command; unloadMovieNum(3); and then load again as mentioned above.
However, this file get cashed. How can a create a refresh (flash only) in order the viewer don’t need to restart the application to see the updated info in this Warning.swf?
Can anyone pls help me?
Please do not criosspost in these forums. Here is the response I provided in the AS1/2 forum...
You can try using a random query at the end of the url to try to force the file to be loaded from the server. This approach just assigns a random number to an arbitrarily named variable as shown below...
loadMovieNum(“http://www.......com/Warning.swf?rand="+String(Math.random()), 3);
I have primarily used this for targeting PHP files that you want to read fresh from the server each time and do not know if it works the sames for swf files.
North America
Europe, Middle East and Africa
Asia Pacific