I think the response I just did a few minutes ago is valid for this too. In the end all views and components are hanging in a DOM tree (*ALL*), and although you can listen for concrete components and methods, I think if you go in a manual mode, you'll end doing some spaghetti code in the end. So I recommend you add Crux to the mix, it's an amazing way to structure and organize code with metodologic and communicate different parts. Far simpler than other microframeworks like Cairngorm, and less invasive in your code. Check the TODOMVC-CRUX example where the code is a very good way to see a full small app with all things.
If you also use AMF and RemoteObject Crux gives you a very good way to handle calls and responses from back end services too. That part is not implemented in TodoMVC but if you go that way I can give you some code for you to use HTH Carlos El dom, 31 ene 2021 a las 8:20, Bilbosax (<[email protected]>) escribió: > Or how about components that aren’t related in a tree at all, components > that > exists side by side? For instance, my app will have several central > components that exist in several states in the main app. One has the job of > collecting search criteria and calling remoteobject services. Another > component will be an image and data viewer for the data. Once the first > component collects the data, it will dispatch an event that the data is > collected and processed. The main app will switch states to the viewer > component, and the viewer component will download the images and format the > appropriate data displays. But the data component and the viewer are > totally > separate and an event sent by one would not bubble up through the other. > How > can I send an event DOWN, or to an unrelated component that will not share > “bubbling” with the sending component? > > In Flex it was simple, every component could just listened to the stage. > What can I do in Royale to hear events from unrelated components? > > > > -- > Sent from: http://apache-royale-users.20374.n8.nabble.com/ > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira
