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
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