# unloadMovieNum Help

**URL:** <https://forum.kirupa.com/t/unloadmovienum-help/184244>\
**Category:** flash\
**Created:** [April 3, 2006, 6:17pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244 "2006-04-03T18:17:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Molie](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Molie](https://forum.kirupa.com/u/Molie)\
**Post date:** [April 3, 2006, 6:17pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/1 "2006-04-03T18:17:46Z")

</div>

Hello everybody,

I’m try to edit a lash Template I put a gallery in it via loadMovie, but the problem is that I can’t unload the Gallery to load other , I don’t know what is wrong with the action , the Swf files to see if you click on any link you will see the Gallery to return to the main click on the burgandy box you will see what I mean  
[http://www.linestyle.net/unloadMovie.zip](http://www.linestyle.net/unloadMovie.zip) (swf only)  
If you interesting to help you can download the fla  
[http://www.linestyle.net/[URL=“http://www.linestyle.net/222.zip”]222.zip](http://www.linestyle.net/unloadMovie.zip) (fla only)

Thank you

Molie

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [April 3, 2006, 6:25pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/2 "2006-04-03T18:25:07Z")

</div>

If you are using \*\*loadMovie \*\*to load an external swf into an empty movieclip then you don’t need to unload it. Whatever you load in next (into the same container) will replace what you have in there now.

If you are using **loadMovieNum** to load an external swf into a level then yes you can unload the movie by using unloadMovieNum(levelNumber);

---

<div class="post-metadata">

**Author:** ![Molie](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Molie](https://forum.kirupa.com/u/Molie)\
**Post date:** [April 3, 2006, 6:40pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/3 "2006-04-03T18:40:42Z")

</div>

> [@lunatic](#):
>
> If you are using \*\*loadMovie \*\*to load an external swf into an empty movieclip then you don’t need to unload it. Whatever you load in next (into the same container) will replace what you have in there now.
> 
> If you are using **loadMovieNum** to load an external swf into a level then yes you can unload the movie by using unloadMovieNum(levelNumber);

Thank you for replying!  
this what I did but it doesn’t work I don’t know why:crying: , you can see the fla yourself

---

<div class="post-metadata">

**Author:** ![Molie](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Molie](https://forum.kirupa.com/u/Molie)\
**Post date:** [April 3, 2006, 8:48pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/4 "2006-04-03T20:48:41Z")

</div>

Can anybody help??

---

<div class="post-metadata">

**Author:** ![stringy](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@stringy](https://forum.kirupa.com/u/stringy)\
**Post date:** [April 3, 2006, 9:36pm UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/5 "2006-04-03T21:36:02Z")

</div>

> [@Molie](#):
>
> Can anybody help??

i was unsure where you on which clip you want to unload the movie.If you stick

```auto
unloadMovieNum(1);

```

inside the on(release){} of main (frame 226,layer 12) it unloads ok but you have to wait until the tween finishes.

similarly on the instances of arr\_2main eg/

```auto
on(press)
{
	unloadMovieNum(1)
	_root.link=7;
	_root.play();
}

```

but if you are wanting to load another movie,just load into the same\_level

---

<div class="post-metadata">

**Author:** ![Molie](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@Molie](https://forum.kirupa.com/u/Molie)\
**Post date:** [April 4, 2006, 7:17am UTC](https://forum.kirupa.com/t/unloadmovienum-help/184244/6 "2006-04-04T07:17:30Z")

</div>

Million Thanks for your Help:thumb2:
