# Having a sub swf dispatch an event to the parent swf?

**URL:** <https://forum.kirupa.com/t/having-a-sub-swf-dispatch-an-event-to-the-parent-swf/270223>\
**Category:** flash\
**Created:** [September 6, 2008, 11:16pm UTC](https://forum.kirupa.com/t/having-a-sub-swf-dispatch-an-event-to-the-parent-swf/270223 "2008-09-06T23:16:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidOrtiz](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@DavidOrtiz](https://forum.kirupa.com/u/DavidOrtiz)\
**Post date:** [September 6, 2008, 11:16pm UTC](https://forum.kirupa.com/t/having-a-sub-swf-dispatch-an-event-to-the-parent-swf/270223/1 "2008-09-06T23:16:37Z")

</div>

I’m having a major issue wrapping my head around another developers way of dispatching events.

What they have now is:

subswf.fla  
-Class A instantiated  
-Class B instantiated

Class B has a function that dispatches CustomEvent.  
On the timeline of subswf, i attach the listener to ClassB and provide a handler.  
The handler calls a method in Class A.

I want to also be able to call a method in the parent swf’s instantiated Class C.

Any ideas or recommendations please?
