Hi Bilbo, You need to send events with bubble param to true. That will make the event go up all the dom chain and reach Main.mxml But you don't need a system manager anymore like in Flex. In Flex we had things hanging from a root component, but also popupmanager was disconnected from root. In Royale all hangs from root and simplifies that.
You can see our TodoMVC example that use that extensively from differente subcomponents or from item renderers: Jewel version: https://github.com/apache/royale-asjs/tree/develop/examples/jewel/todomvc Jewel+Crux version: https://github.com/apache/royale-asjs/tree/develop/examples/crux/todomvc-jewel-crux TodoMVC Running version: https://royale.apache.org/todomvc-jewel/ HTH El mié, 27 ene 2021 a las 20:26, Bilbosax (<[email protected]>) escribió: > So say I have an MXML component called Main.mxml and another called > Customers.mxml. From Customers.mxml, I dispatch an event like so: > > var f:Event = new Event("newCustomerRegistered", true); > dispatchEvent(f); > > In my Flex way of doing things, if I wanted to catch that event in the > Main.mxml, I attached a listener to the systemManager.stage like so: > > systemManager.stage.addEventListener("newCustomerRegistered", > updateDatabase); > > > systemManager.stage was a base that all events from all components could be > heard as they bubbled up and I loved it. But I don't find it in Royale. > How can I attach a listener to my Main.mxml in Royale so that it can hear > events dispatched from all other 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
