# Two way OOP comunication

**URL:** <https://forum.kirupa.com/t/two-way-oop-comunication/210959>\
**Category:** flash\
**Created:** [December 24, 2006, 5:26pm UTC](https://forum.kirupa.com/t/two-way-oop-comunication/210959 "2006-12-24T17:26:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arkum](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/arkum/32/1951_2.png) [@arkum](https://forum.kirupa.com/u/arkum)\
**Post date:** [December 24, 2006, 5:26pm UTC](https://forum.kirupa.com/t/two-way-oop-comunication/210959/1 "2006-12-24T17:26:12Z")

</div>

Hi there,

Been getting my head round the ways to set up comunication between classes. When its a case of events being passed along a chain (eg button broadcasts event to interface which broadcasts event to manager) I have no problem, but how should I be dealing with a situation that requires bi-direction comunication?

For example I have an mp3Player class which broadcasts button events to a mediaManager class and I have a listbox Item class that broadcasts events to a listbox manager class. I need button events in the mp3player class to effect the listbox Item class and vice versa.

How should I be setting this up? Should the listbox manager broadcast events and subscribe to the mediaManager class and vice versa? Or should I have a new class which subscribes to listen to events from both and passes them accross?

Thanks
