# Cache Issue :SWF file

**URL:** https://forum.kirupa.com/t/cache-issue-swf-file/265243
**Category:** flash
**Created:** [July 6, 2008, 10:26pm UTC](https://forum.kirupa.com/t/cache-issue-swf-file/265243 "2008-07-06T22:26:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)
#### Post date: [July 6, 2008, 10:26pm UTC](https://forum.kirupa.com/t/cache-issue-swf-file/265243/1 "2008-07-06T22:26:15Z")

</div>

Hi Everybody,

I want to refresh my .swf without clearing the cache or files. As we all know that just refresh doesn’t work. So after quite a bit of searching i got some code here:

[http://www.kirupa.com/developer/actionscript/tricks/cache.htm](http://www.kirupa.com/developer/actionscript/tricks/cache.htm)

But i tried that without any luck. Does that work in all cases. And i am not sure if i am doing it corrrectly. What i did is - i created a New Blank file and on first frame i added this

myIdentifier=Math.round(Math.random()\*10000);  
loadMovie(“myfile.swf?uniq=”+myIdentifier,1);

It does embed myfile.swf but refresh still doesn’t work. Is there any other method of achieving this thing.

Thanx.
