# Animation wont play a 2nd time....how do I Clear Cache?

**URL:** <https://forum.kirupa.com/t/animation-wont-play-a-2nd-time-how-do-i-clear-cache/204014>\
**Category:** flash\
**Created:** [October 16, 2006, 2:59pm UTC](https://forum.kirupa.com/t/animation-wont-play-a-2nd-time-how-do-i-clear-cache/204014 "2006-10-16T14:59:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claire\_murphy](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Claire\_murphy](https://forum.kirupa.com/u/Claire_murphy)\
**Post date:** [October 16, 2006, 2:59pm UTC](https://forum.kirupa.com/t/animation-wont-play-a-2nd-time-how-do-i-clear-cache/204014/1 "2006-10-16T14:59:25Z")

</div>

Hey,  
I have the following code that brings in a movie animation. My problem is that once the animation is finished and the user presses the ‘back’ button to navigate elsewhere on the website, if they go back to the animation and click the ‘great\_btn’ the animation won’t play again.

ActionScript Code:  
[FONT=Courier New][COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]main\_cntr[/COLOR].[COLOR=#000080]btns\_mc[/COLOR].[COLOR=#000080]great\_btn[/COLOR].[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]

loadscrollItCOLOR=#000000[/COLOR]; disableBtnsCOLOR=#000000[/COLOR];  
[LEFT][COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]homepage\_cntr[/COLOR].[COLOR=#0000ff]\_alpha[/COLOR] = [COLOR=#000080]0[/COLOR];  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]photos\_cntr[/COLOR].[COLOR=#0000ff]\_alpha[/COLOR] = [COLOR=#000080]0[/COLOR]; [COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]btns\_cntr[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]main\_cntr[/COLOR].[COLOR=#000080]main\_txt[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]sub\_cntr[/COLOR].[COLOR=#000080]main\_txt[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]main\_cntr[/COLOR].[COLOR=#000080]sub\_txt[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]sub\_cntr[/COLOR].[COLOR=#000080]sub\_txt[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]main\_cntr[/COLOR].[COLOR=#000080]btns\_mc[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]great\_cntr[/COLOR].[COLOR=#0000ff]loadMovie[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]pattern\_cntr1[/COLOR].[COLOR=#000080]background1[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]pattern\_cntr2[/COLOR].[COLOR=#000080]background2[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]main\_cntr[/COLOR].[COLOR=#000080]back\_btn1[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000 [/COLOR]  
[COLOR=#000000]}[/COLOR][/LEFT]

[/FONT]

I tried adding this line of code to the back\_btn so that the animation is actually loaded in on every click of ‘great\_btn’ but it’s not working.

ActionScript Code:  
[FONT=Courier New][COLOR=#0000ff]\_root[/COLOR].[COLOR=#000080]great\_cntr[/COLOR].[COLOR=#0000ff]unloadMovie[/COLOR]COLOR=#000000[/COLOR];

[/FONT]

Any ideas?  
Cx
