# I dont want flash to refresh

**URL:** <https://forum.kirupa.com/t/i-dont-want-flash-to-refresh/222270>\
**Category:** Uncategorized\
**Created:** [April 12, 2007, 3:30am UTC](https://forum.kirupa.com/t/i-dont-want-flash-to-refresh/222270 "2007-04-12T03:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carriemims](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@carriemims](https://forum.kirupa.com/u/carriemims)\
**Post date:** [April 12, 2007, 3:30am UTC](https://forum.kirupa.com/t/i-dont-want-flash-to-refresh/222270/1 "2007-04-12T03:30:02Z")

</div>

hi, i have a site that loads 1 of 3 swfs for navigation. The problem is that when a button is clicked the flash file refreshes. I only want the file to refresh if the browser is refreshed, not if a button is clicked in the file…

here’s the site:  
[www.pandoraultra.com](http://www.pandoraultra.com)

here’s my container script:

filename = [“nav\_red.swf”, “nav\_white.swf”, “nav\_gray.swf”];  
path = “[http://www.pandoraultra.com/navigation/](http://www.pandoraultra.com/navigation/)”;  
i = filename.length;  
k = Math.floor(Math.random()\*i);  
loadMovie(path+filename[k], movieTarget);

the main navigation is 1 of 3 swfs that loads, click any of the buttons and u will see the swf reload and a new file in its place.

How do i fix this?? Thanks for any help 🙂
