# Solve cache code problem

**URL:** <https://forum.kirupa.com/t/solve-cache-code-problem/24214>\
**Category:** Uncategorized\
**Created:** [June 27, 2003, 9:43am UTC](https://forum.kirupa.com/t/solve-cache-code-problem/24214 "2003-06-27T09:43:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)\
**Post date:** [June 27, 2003, 9:43am UTC](https://forum.kirupa.com/t/solve-cache-code-problem/24214/1 "2003-06-27T09:43:28Z")

</div>

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

That is the code used to solve the cache problems, but i dont’ really get the second line. How does changing the level or target of the new movie stop the old file from playing?!

i also searched what “?” does in flash, but i couldn’t seem to find it. Could someone explain it to me, thx 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 27, 2003, 10:42am UTC](https://forum.kirupa.com/t/solve-cache-code-problem/24214/2 "2003-06-27T10:42:13Z")

</div>

We don’t change the level, it’s 1 all the time.

And “?” des nothing in Flash. It’s just the way you pass variables in the query string. For instance, if you look at the URL of this page, it’s something like showthread.php?s=&threadid=27002

And that code you posted, you’re loading the page with a different identifier each time, that’s all 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 27, 2003, 10:46am UTC](https://forum.kirupa.com/t/solve-cache-code-problem/24214/3 "2003-06-27T10:46:06Z")

</div>

o…alrite i pretty much get that now, thx 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 27, 2003, 10:49am UTC](https://forum.kirupa.com/t/solve-cache-code-problem/24214/4 "2003-06-27T10:49:55Z")

</div>

actually i’m stuck cause i don’t know how to put that into my code…

[AS]  
\_root.loadcontent.loadMovie (\_root.section + “.swf”)  
[/AS]

is what i have, so how would i put that code into there?
