# Unloading Movie Problem

**URL:** https://forum.kirupa.com/t/unloading-movie-problem/20278
**Category:** flash
**Created:** [May 7, 2003, 2:35am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278 "2003-05-07T02:35:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Batman124617](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@Batman124617](https://forum.kirupa.com/u/Batman124617)
#### Post date: [May 7, 2003, 2:35am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278/1 "2003-05-07T02:35:43Z")

</div>

I know this is supposed to be pretty easy to do, but for some reason I can’t get this to work. In my first frame, I load a .swf of thumbnails into my main movie. On my second frame, I want that .swf to unload and not be there any longer. However, my .swf remains despite my efforts. Here is the scripting for the first frame:

[AS]\_root.createEmptyMovieClip(“twinkle1”, 0)  
\_root.createEmptyMovieClip(“twinkle2”, 1)  
\_root.twinkle1.loadMovie(“NavigationThumbs.swf”)  
stop();[/AS]

_twinkle1 loads the thumbnails .swf, twinkle2 is where the pics load when a thumbnail is clicked._

on Frame 2 I have:  
[AS]\_root.twinkle1.unloadMovie(“NavigationThumbs.swf”)  
stop();[/AS]

Can anyone help?

Batman124617:bounce: :crazy:

---

<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 7, 2003, 2:44am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278/2 "2003-05-07T02:44:12Z")

</div>

You have to change the \_levels…

First put this on the 1 frame:

```auto

_root.createEmptyMovieClip("twinkle1", 1)
_root.createEmptyMovieClip("twinkle2", 2)
_root.twinkle1.loadMovie("NavigationThumbs.swf")
stop();

```

then on 2 frame:

```auto

unloadMovie("_level1")
stop();

```

I never put any external .swf on \_level0 cos that is the main timeline,  
so i will load from \_level 1 to up:smirk:

---

<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 7, 2003, 3:01am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278/3 "2003-05-07T03:01:04Z")

</div>

It still does not work with that code. Is there any other way or possibility?

---

<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 7, 2003, 3:35am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278/4 "2003-05-07T03:35:48Z")

</div>

sorry , my mistake!

on frame 2:

```auto

_root.unloadMovie("_level1")
stop();

```

That should work…😉

---

<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 7, 2003, 4:00am UTC](https://forum.kirupa.com/t/unloading-movie-problem/20278/5 "2003-05-07T04:00:58Z")

</div>

Thanks a lot buddy! I got my prob fixed thanks to you! Mahalo!
