Archive
Optimizing Adobe Flex, Air, Flash Applications – by Sean Christmann
Adobe Flex and MVC
How Flex fits the MVC models
The goal of the Model-View-Controller (MVC) architecture is that by creating components with a well-defined and limited scope in your application, you increase the reusability of the components and improve the maintainability of the overall system. Using the MVC architecture, you can partition your system into three categories of components:
- Model components Encapsulates data and behaviors related to the data.
- View components Defines your application’s user interface.
- Controller components Handles the data interconnectivity in your application.
For example, with the MVC design, you could implement a data-entry form that has three distinct pieces:
* The model consists of XML data files or the remote data service calls to hold the form data.
* The view is the presentation of any data and display of all user interface elements.
* The controller holds the user interface logic.
Although you can consider a Flex application as part of the View in a distributed MVC architecture, you can use Flex to implement the entire MVC architecture on the client. A Flex application has its own view components that define the user interface, model components to represent data, and controller components responsible for the communication with back-end systems. This client-side separation of task is not available in HTML.
If you are interested in finding more information you can read the following posts I found attractive and different, as a concept, one from each other.
Flex And MVC Part 1 – by Kapil Viren Ahuja (… I am waiting for part 2
)
http://www.actionscript.org/resources/articles/751/1/Flex-and-MVC—Part-I/Page1.html
Why I hate MVC… – by Ionut Grosu (Romanian Flex programmers RULEZ
)) )
http://www.flexwizz.com/2008/04/01/why-i-hate-mvc/
MVC considered harmful – by Sho Kuwamoto
http://weblogs.macromedia.com/sho/archives/2005/08/mvc_considered.html
The Flex Show: Episode 33, PureMVC Framework (Podcast – Audio Only)
http://www.theflexshow.com/blog/index.cfm/2008/1/30/The-Flex-Show–Episode-33-PureMVC-Framework