# unloadMovie Script

**URL:** <https://forum.kirupa.com/t/unloadmovie-script/203525>\
**Category:** flash\
**Created:** [October 11, 2006, 7:28pm UTC](https://forum.kirupa.com/t/unloadmovie-script/203525 "2006-10-11T19:28:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [October 11, 2006, 7:28pm UTC](https://forum.kirupa.com/t/unloadmovie-script/203525/1 "2006-10-11T19:28:33Z")

</div>

=) Hi people, this should be an easy one…

Basically, I have a few buttons which load SWF’s. the SWF’s are games. I need a script which i can add to the buttons so the SWF which is currently loaded is then TOTALLY unloaded.

Only reason I ask is because when some of the games are loaded for the second time they dont work properly and i thinks it because their scripts try to keep defining variables that already exist, so I need to unload them completely.

Anyone got any ideas???:h:  
Thanks in advance.
