12 Replies Latest reply on Aug 20, 2009 5:31 AM by Gregory Lafrance

    Advice about my application's structure please

    nikos101 Level 2

      My applications usually have the following structure

       

      A top level main application and multiple child components all having a singleton for global varaibles.

       

      I usually add listeners to the main to listen to events from the components and then do stuff. I was thinking, mayby it would be better to fire the events from the singleton instead and add listenerers to the componetns instead of the main app. This would allow the main application not the need to know what methods to call from the varius components if it hears an event?

       

      What do you think?