# Removing listeners from a loaded movie

**URL:** <https://forum.kirupa.com/t/removing-listeners-from-a-loaded-movie/79488>\
**Category:** flash\
**Created:** [February 14, 2005, 5:09pm UTC](https://forum.kirupa.com/t/removing-listeners-from-a-loaded-movie/79488 "2005-02-14T17:09:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevenxsix](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@sevenxsix](https://forum.kirupa.com/u/sevenxsix)\
**Post date:** [February 14, 2005, 5:09pm UTC](https://forum.kirupa.com/t/removing-listeners-from-a-loaded-movie/79488/1 "2005-02-14T17:09:53Z")

</div>

Hi everyone!

I have a controller movie into which I am loading several smaller movies. In a particular smaller movie, I am setting up a keyboard listener object, which works fine by itself. But in my controller movie when I _unload/delete/remove listener_ to this smaller movie, the listener continues to function! So when I click the button that loads this smaller movie, it then runs the actions of the key listener _twice_. Or three times. Or four, as many times as I load this movie.

Here is what I have tried to use to get rid of the movie and it’s listener. The movie is successfully deleted, but the listener continues. Plus it doesn’t appear in the debug Objects or Variables output.

```auto

big_phone.phone.unloadMovie();
big_phone.phone.removeMovieClip();
Key.removeListener(_level0.big_phone.phone.everything.keyListener_mainMenu); 
delete _level0.big_phone.phone.everything.keyListener_mainMenu;

```

(those gaps aren’t actually there)

I’ve tried many things, but it doesn’t even seem addressable. Anyone have any ideas? Greatly appreciated!

Aaron
