I have found that the documentation is not that good, which can make somewhat RelayEvents hard to use. Here is my shorthand to make is easy:
listener.relayEvents(broadcaster, ['custom event a', 'custom event b']);
Where:
- listener: The object listening for events. Register the array events in the listeners collection of the object
- broadcaster: The object firing the events. To fire the event use the fireEvent('custom event a') method within the broadcaster to fire the event