Hi, I'm having an issue with the overall design of an application.
My app consists of some kind of "main Components" (data browser comp , fil upload comp, chart browser, etc.) which are used in a SuperTab Navigator (flexlib). Multiple instances of these main components can be opened closed. Furthermore I'm using the alon design pattern (http://www.helihobby.com/html/alon_desingpattern.html) for central event handling. Here comes the Probleme: Since there can be multiple instances of one component and a central event handling (alon), events dispatched from one instance of a component are "heard" by all instances. I can go around this by adding / deleting event listeners as needed. But there im running into problems, cause the main components are a compound of other components. So the event dispatching, and listeners are distributeted to these components , making the "as needed" approach almost impossible. At the moment I'm giving all the main components an id, setting it in all its "child" components as well. So when an event is dispatched the id of component is attached to event (as parameter) and in the event handler function i check if the event is really intended for this instance. I think this solution is not nice at all. Does somebody have an idea to overcome this problem ? _rico (Hope I could make the problem understandable - it's hard to explain)

