# Need help removing multiple event listeners

**URL:** https://forum.kirupa.com/t/need-help-removing-multiple-event-listeners/319327
**Category:** Uncategorized
**Created:** [February 16, 2011, 1:40pm UTC](https://forum.kirupa.com/t/need-help-removing-multiple-event-listeners/319327 "2011-02-16T13:40:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bobby\_solo](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@bobby\_solo](https://forum.kirupa.com/u/bobby_solo)
#### Post date: [February 16, 2011, 1:40pm UTC](https://forum.kirupa.com/t/need-help-removing-multiple-event-listeners/319327/1 "2011-02-16T13:40:23Z")

</div>

hi,

i need to remove the event listeners in each frame of my movie and re-apply them to stop them repeating themselves as i call the gotoAndStop command in the “Change” function in as i’m swapping through scenes and frames.

but i can’t remove the event listeners. what am i doing wrong? any help? Thanks in advance.

Front.removeEventListener(Event.ENTER\_FRAME, Change);  
Back.removeEventListener(Event.ENTER\_FRAME, Change);  
Side.removeEventListener(Event.ENTER\_FRAME, Change);

Front.addEventListener(MouseEvent.CLICK, function(){Change(1, “White”)});  
Back.addEventListener(MouseEvent.CLICK, function(){Change(2, “White”)});  
Side.addEventListener(MouseEvent.CLICK, function(){Change(3, “White”)});
