# \[mx\] unloading

**URL:** <https://forum.kirupa.com/t/mx-unloading/14812>\
**Category:** flash\
**Created:** [March 3, 2003, 2:35am UTC](https://forum.kirupa.com/t/mx-unloading/14812 "2003-03-03T02:35:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [March 3, 2003, 2:35am UTC](https://forum.kirupa.com/t/mx-unloading/14812/1 "2003-03-03T02:35:06Z")

</div>

My movie won’t unload.

In my flash I have all my buttons loading their .swfs to level 1. The main pic that loads when the site first opens is on level 7. I have the following code:

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ code:

```php
on (release) { 
createEmptyMovieClip("box", 1);
box.loadMovie("boxservices.swf");
box._x = 25;
box._y = 180;
}
on (releaseOutside) {
	unloadMovieNum(1);
                unloadMovieNum(7);
}

```

**and this is the main swf’s code**

```php

onClipEvent (load) {
	loadMovieNum("opener.swf", 7);
}

```

\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ : ec

So it creates the ‘box’ for the mc for the button and then when the user clicks a second button the original movie on lvl 1 unloads. But my main swf which is on lvl 7 does not unload… does anyone know why?

:love: ~Seretha ( **confused** )

---

<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:** [March 3, 2003, 5:05am UTC](https://forum.kirupa.com/t/mx-unloading/14812/2 "2003-03-03T05:05:09Z")

</div>

hmmmm… so no one has experienced this before? (…sneeks in a bump)

:love: ~Seretha

---

<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:** [March 3, 2003, 9:17am UTC](https://forum.kirupa.com/t/mx-unloading/14812/3 "2003-03-03T09:17:40Z")

</div>

**instance.onReleaseOutside**

invoked when the mouse is released while the pointer is outside the button after the button is pressed while the pointer is inside the button

🙂
