View comments | RSS feed

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:

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.


Flex 2.01

Take a survey


Comments


No screen name said on Mar 21, 2007 at 6:55 AM :
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=anatomy_010_04.html#137546
...
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.
...

what about MXML comparing to HTML? It seems to me a wrong comparison of HTML - an output format towards FLEX a development environment... if we compare HTML+JavaScript+PHP|Python|Pearl - we'll get more comparable examples.
Greg Lafrance said on Oct 9, 2008 at 9:22 AM :
Your point is well taken, but Flex vs HTML+JavaScript+PHP|Python|Pearl means with Flex it is easier to have a comprehensive development framework that works as a cohesive system, with fewer workarounds.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/201/html/anatomy_010_04.html