# unloadMovie

**URL:** <https://forum.kirupa.com/t/unloadmovie/20765>\
**Category:** flash\
**Created:** [May 13, 2003, 8:05am UTC](https://forum.kirupa.com/t/unloadmovie/20765 "2003-05-13T08:05:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NovemberRain](https://avatars.discourse-cdn.com/v4/letter/n/73ab20/32.png) [@NovemberRain](https://forum.kirupa.com/u/NovemberRain)\
**Post date:** [May 13, 2003, 8:05am UTC](https://forum.kirupa.com/t/unloadmovie/20765/1 "2003-05-13T08:05:15Z")

</div>

I’ve tried to unload a movieclip from my flash MX File. I’ve tried on this way…that is

unloadMovieNum

in this method I’ve given the target path of the movie clip. But when the browser page refreshing that again displays. How can we unload a movie that never comes even if browser refreshing the page. Any body to help me…:goatee:

---

<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:** [May 13, 2003, 8:42am UTC](https://forum.kirupa.com/t/unloadmovie/20765/2 "2003-05-13T08:42:48Z")

</div>

you’ll need to use a SharedObject for that… to write the SO, use this code:

```auto
mySO = SharedObject.getLocal("mcvisibility")
if (mySO.data.myObj.isNotVisible) {
unloadMovie[Num](level/"target")
}

```

and then, after where you have your original unloading script, have this action:

```auto
mySO.data.myObj = {}
mySO.data.myObj.isNotVisible = true

```

something like this should do it 🙂
