Hello. I am new to Flex and need a little advice on which is the best approach to use. I am creating an application with two main panels, where the content of the right panel is dependent on what you selected in the left panel. For example, if you select a file in the middle, I want to show file information and controls in the right panel. If you select a folder in the middle, you see folder information and controls in the right panel. And so on.
So, the content of the right panel (including the fields I show and the buttons and controls) will be changing.
But here is the catch. Because my users want flexibility, there are times when I need to use the same stuff from the right panel inside of a popup. For example, if they are looking at a folder in the right panel, they may want to popup the File screen for one of the files in that folder. Make sense?
So, what is the best approach to take the same chunk of functionality and be able to place it inside the right panel and then later on place it inside of a popup?
Is a Module the right way? Is a sub-application? Please let me know what the best approach would be to dive into. Thank you!
Hmmm, I think the answer the my own question is neither. Instead, I will use the PopUp control for both of them. Just format the popup slightly differently so it appears in the right panel or as a floating popup depending on how the user calls it.
Fell free to tell me if I am going about this the wrong way.
Anything re-usable should be a Component. Components are then packaged into
the main app, or a module if the main app is getting to be too big, or
packaged into sub-apps if a subset should be able to run on its own or the
app will be using code from different versions of the SDK.
Sounds like a good answer to me. Off I go then into the wonderful world of custom components! Thank you!