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.
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!