# Unload Movies on LeaveFrame

**URL:** https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790
**Category:** Uncategorized
**Created:** [April 16, 2006, 4:19pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790 "2006-04-16T16:19:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rudelsuppe](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rudelsuppe](https://forum.kirupa.com/u/rudelsuppe)
#### Post date: [April 16, 2006, 4:19pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/1 "2006-04-16T16:19:26Z")

</div>

Hi 🙂

I’m building a site for my music and stupid as I am I tried to do so in flash.  
well, most part works just fine

problem:  
i load an mp3 with

```auto
loadMovieNum("queen/player.swf", 2);

```

to use my homemade player-interface

what I need now is a way to unload these movies the moment someone leaves the frame. i tried to put an

```auto
unloadMovieNum("queen/player.swf");

```

on every menue item but that does not seem to work  
(by now you probably realised I’m no flash-guru)

if anyone could help (the simpliest way possible) i would be greatful forever (maybe I’ll write a song for my new saviour 😉 )

---

<div class="post-metadata">

### Author: ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)
#### Post date: [April 16, 2006, 4:56pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/2 "2006-04-16T16:56:31Z")

</div>

unloadMovie(“queen/player.swf”);

---

<div class="post-metadata">

### Author: ![rudelsuppe](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rudelsuppe](https://forum.kirupa.com/u/rudelsuppe)
#### Post date: [April 16, 2006, 5:12pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/3 "2006-04-16T17:12:29Z")

</div>

tried that  
… no effect at all (music keeps playing and the player remains visible)

when I use “unloadMovieNum” the browser opens the domain root directory and I can see the files on the webspace (so at least it does something)

i tried also changing the swf-path (with or without sub-directory) … doesn’t work either (exactly same problems as mentioned)

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [April 16, 2006, 7:21pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/4 "2006-04-16T19:21:33Z")

</div>

unloadMovieNum(2);

:yoshi:

---

<div class="post-metadata">

### Author: ![rudelsuppe](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rudelsuppe](https://forum.kirupa.com/u/rudelsuppe)
#### Post date: [April 16, 2006, 10:56pm UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/5 "2006-04-16T22:56:08Z")

</div>

omg … thx!! :crazy:  
… just had to add another stopAllSounds

incredible that this was the only real problem i couldn’t resolve on my own / using google.

lets see if i can put up that halfpromised song for you :trout:  
(if it’s not happens next few days don’t count on it)

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [April 17, 2006, 5:42am UTC](https://forum.kirupa.com/t/unload-movies-on-leaveframe/185790/6 "2006-04-17T05:42:41Z")

</div>

:lol: Glad to help :thumb:
