# Unloading what's been loaded

**URL:** https://forum.kirupa.com/t/unloading-whats-been-loaded/6123
**Category:** Uncategorized
**Created:** [September 30, 2002, 8:34am UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123 "2002-09-30T08:34:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jimw00d](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jimw00d](https://forum.kirupa.com/u/jimw00d)
#### Post date: [September 30, 2002, 8:34am UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/1 "2002-09-30T08:34:32Z")

</div>

I have used the following code to load a .swf into my main movie:

loadMovie("-","-")

with a target location command

This works fine, alignment and all, but I can’t figure out how to unload the movie from within the loaded movie without re-loading the http file of the main movie.

Sounds confusing…

Using remote location would work if the .swf was loaded from a remote location which it isn’t and I want to avoid this.

Any help around?

---

<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: [September 30, 2002, 12:03pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/2 "2002-09-30T12:03:15Z")

</div>

Hi,

Do u mean **unloadMovie(“target”);**?

---

<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: [September 30, 2002, 12:18pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/3 "2002-09-30T12:18:39Z")

</div>

Doesn’t seem to work, here’s the .flas if you would like to see, click on credits and you’ll see a return option. I can’t get it to work

cheers

---

<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: [September 30, 2002, 12:20pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/4 "2002-09-30T12:20:35Z")

</div>

here’s the main movie

---

<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: [September 30, 2002, 12:28pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/5 "2002-09-30T12:28:25Z")

</div>

Hi,

I’ve had a look to ur flas and ur mistake is that ur trying to unload the swf but u should refer to the MC that’s holding it

```
unloadMovie("_root.theClip");

```

Cheers

SHO

---

<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: [September 30, 2002, 1:34pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/6 "2002-09-30T13:34:02Z")

</div>

Works a treat,

muchos grazias

---

<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: [September 30, 2002, 1:47pm UTC](https://forum.kirupa.com/t/unloading-whats-been-loaded/6123/7 "2002-09-30T13:47:59Z")

</div>

U r wellcome

De nada.

Ez dago zergaitik

Glad it worked

Cheers

SHO
