# Event listeners

**URL:** <https://forum.kirupa.com/t/event-listeners/319480>\
**Category:** Uncategorized\
**Created:** [February 22, 2011, 6:23am UTC](https://forum.kirupa.com/t/event-listeners/319480 "2011-02-22T06:23:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![farazfo](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@farazfo](https://forum.kirupa.com/u/farazfo)\
**Post date:** [February 22, 2011, 6:23am UTC](https://forum.kirupa.com/t/event-listeners/319480/1 "2011-02-22T06:23:25Z")

</div>

## hi I have this problem with mouse events simply I added two listeners on a movieClip that simply contains two keyframes 1 and 2 the code is in external class file of the movieClip

addEventListener(MouseEvent.MOUSE\_DOWN,downEvent);  
addEventListener(MouseEvent.MOUSE\_UP,upEvent);

## private function downEvent(event:MouseEvent){ gotoAndStop(2); } private function upEvent(event:MouseEvent){ gotoAndStop(1); }

but when it goes to frame 2 it does not answer the moseUp event and stucks in frame 2  
please help me
