I am trying to create my first real world application. It's a database driven (via Web Services) application in Flash Builder 4.
The application will have over 30+ different data entry form screens, list screens, search screens etc that all use different web services.
Obviously I want to split this up so that it's manageable as the application grows, and so that the application is as fast as possible (initial loading can be slow if it has to load all the elements, but I want it to be fast once the user is "in" the app).
The approach I had up until now was to have my main application (called layout), and then have a ViewStack with each of the different screens on it. This works well, however it means there is a fair bit of code to be maintained each time I add a new screen (info on that is here: Swap MXML Component in Application from another Component - Possible? )
Each group of forms are related, so the "clients" area of the application has a data entry form, a few list forms. I need to pass parameters when it loads. ie. "Load the data entry form with the ID of 123".
At the moment I have a Component for each form, ie. ClientForm and ClientList. Is this a good approach? Should I be using Modules instead?
Is the ViewStack an efficient way of doing it?