I have an AS3 application running in a flash player that is designed to update an image stored on a server. Every 1 second, the server replaces the image with a new one.
To get the image from the server, and not from the cache, I had to add a 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 update process works.
But what is annoying is that this method creates temporary files in a temporary folder that grows and grows:
C: \ Users \ MyName \ AppData \ Local \ Microsoft \ Windows \ INetCache
Is there any way to disable the cache, how is this possible to do with Air? I ask about this, because the application should run on the built-in platform with a flash player 10, on which there can be no access to the player settings.
Sincerely.
source share