# Dispatching events to siblings

**URL:** <https://forum.kirupa.com/t/dispatching-events-to-siblings/265108>\
**Category:** flash\
**Created:** [July 4, 2008, 2:08am UTC](https://forum.kirupa.com/t/dispatching-events-to-siblings/265108 "2008-07-04T02:08:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguelele](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Miguelele](https://forum.kirupa.com/u/Miguelele)\
**Post date:** [July 4, 2008, 2:08am UTC](https://forum.kirupa.com/t/dispatching-events-to-siblings/265108/1 "2008-07-04T02:08:48Z")

</div>

Hi. I’ve found lots of tutorials and articles about custom events, but I can’t find the TRUTH about passing events to siblings.

My problem in Flex: the main app has 2 childs: a control bar with buttons and a pane to display thumbs. I want a button in the bar to change the currentState in the thumbs pane.

I have made a custom event to pass a parameter along the event.

The main app can listen to the event, BUT the sibling pane CANNOT.

So what I can do? must I fire another event to the thumbs pane when the Main app receives the event? It doesn seem a ‘best practices’ approach to loosely coupling (I try to learn trough right steps).

Thanks:  
Miguel

---

<div class="post-metadata">

**Author:** ![Miguelele](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Miguelele](https://forum.kirupa.com/u/Miguelele)\
**Post date:** [July 4, 2008, 8:26pm UTC](https://forum.kirupa.com/t/dispatching-events-to-siblings/265108/2 "2008-07-04T20:26:39Z")

</div>

Thank you.

Now I am really confused. I am refactoring an old Flash app using Flex and I have split up everything in these nice components. The hierarchical ones are working great, but I am really struggled with siblings.

I was trying to implement a basic MVC pattern (with my _advanced newbie_ skills) using custom components, but now I need a new strategy. Its more than just a problem with a button, because most of the app relays in user interface, so a lot of objects need to communicate with others.

**I do not know what to do now.** Must the Controller things be in the root component??? It is not supposed to be so hard. I was happy with the idea of decoupling everything.

Any guidance will be welcomed.

Thanks:  
Miguel
