# Class doesn't catch event

**URL:** <https://forum.kirupa.com/t/class-doesnt-catch-event/300346>\
**Category:** flash\
**Created:** [November 19, 2009, 3:14pm UTC](https://forum.kirupa.com/t/class-doesnt-catch-event/300346 "2009-11-19T15:14:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pancho](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@Pancho](https://forum.kirupa.com/u/Pancho)\
**Post date:** [November 19, 2009, 3:14pm UTC](https://forum.kirupa.com/t/class-doesnt-catch-event/300346/1 "2009-11-19T15:14:03Z")

</div>

It works flawlessly the other way round. I can dispatch an event in a class (extends sprite) and my main .fla does catch it. The other way round it doesn’t. To transmit a number from my fla. to the class (added as child) I dispatch an event, but the class never receives it. What’s wrong. Initially I wanted to dipatch the event in another class, but as far as I understood, the event would never be transmitted from the other class as events only communicate to their parents.

Hope my sketch helps a bit. Actually the image (uiloader) should transmit the loading progress directly, so the loading status bar could change its width. But as I couldn’t get this to work, I started to dispatch another event from the main document which placed image and loading bar dynamically on the stage. How do I need to add the listener to the LoadingStatus.as, so that it can change the width by itself?
