preslavrachev
03-21-2009, 02:38 PM
Hello everyone,
I would really like to know what the best practices to implement MVC in Flex currently are. Imagine that we have a complex application that has MVC applied not only on the application level, but also on the component level, i.e. every custom component represents an MVC architecture as well. How will you tackle that? How will you design the communication flow? Would you use a Singleton model whose instance you will get on every level, or you will use multiple model instances? How will you make component controllers "speak" to the application controller? Will you add event listeners in the app controler, or will leave the MXML containers responsible for arranging that?
Please, toss in any suggestions that might come to your head.
I would really like to know what the best practices to implement MVC in Flex currently are. Imagine that we have a complex application that has MVC applied not only on the application level, but also on the component level, i.e. every custom component represents an MVC architecture as well. How will you tackle that? How will you design the communication flow? Would you use a Singleton model whose instance you will get on every level, or you will use multiple model instances? How will you make component controllers "speak" to the application controller? Will you add event listeners in the app controler, or will leave the MXML containers responsible for arranging that?
Please, toss in any suggestions that might come to your head.