I have an AS3 application running in flash player which aims at refreshing an image stored on a server. On every 1 second, the server replaces the image by a new one.
To get the image from server and not from cache, I had to add to use the random number method as shown below:
loader = new URLLoader();
var request:URLRequest =
new URLRequest(
"http://www.theServer.com/myImage.png?random"+(Math.random() * 10000));
loader.load(request);
, and the whole refreshing process works.
But what is annoying is that this method generates temporary files in the temporary folder which is growing and growing:
C:\Users\MyName\AppData\Local\Microsoft\Windows\INetCache
Is there a way to disable the cache as it is possible to do with Air? I am asking this because the application is to run on an embedded platform with flash player 10, on which there might be no way to access to flash player settings.
Regards.