# Event listener from other classes

**URL:** <https://forum.kirupa.com/t/event-listener-from-other-classes/234748>\
**Category:** Uncategorized\
**Created:** [August 5, 2007, 6:56pm UTC](https://forum.kirupa.com/t/event-listener-from-other-classes/234748 "2007-08-05T18:56:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xEnOn](https://avatars.discourse-cdn.com/v4/letter/x/85e7bf/32.png) [@xEnOn](https://forum.kirupa.com/u/xEnOn)\
**Post date:** [August 5, 2007, 6:56pm UTC](https://forum.kirupa.com/t/event-listener-from-other-classes/234748/1 "2007-08-05T18:56:59Z")

</div>

i am dispatching a event from a movieclip class.  
my document class could hear it if i do this:

```auto

addEventListener("onJump", jumpReceived, true);

```

apprently, i must set the last parameter of capture to true. otherwise, i won’t get the dispatched event. i am not sure why though.

then now my problem comes when i am trying to listen to this event from one of the other movieclip classes. i did the same thing that i have done in my document class to listen to the event with the same callback function, but it doesn’t seem to detect anything.

how could i listen to it from other movieclip classes?  
thanks.
