11/10/2009 8:34:10 AM
Title:
How to understand and use MVC framework in flex? Any example?
Hi, can you please help me to understand the MVC framework in Flex?
Actually, I quite confuse how to use it in flex? If anybody can show me a simple example that can work.
thanks,
11/10/2009 1:32:26 PM
Hi, In short I would like to tell you about the basic things that we include in the MVC framework for Flex: Model - View - Controler
1)MODEL It relates to data,state and communication.In this model we define
* SOAP (Communication with asp, PHP, Webservices etc)
* Storage of data
* Management of data
* How to maintain application state
* ActionScript Media format ( AMF )
* XML Formats / Structures
* Remote Shared Objects ( FSO )
* Local Shared Objects (LSO)
* Local Connection
etc
2) VIEW comprises of Visual representation of data, Skinning Components, Creating the MXML components,Adding interactivity, CSS etc. So this we can say that it deals with the design part. The part which user will see and interact with.
3)CONTROLLER It comprises of the ways by which user will interact with the view and how the data will interact with the view. Text validations, Events are examples. Controller interprets the actions done by user and accordingly do changes to data (MODEL).
11/11/2009 2:49:25 AM
Hi, thanks for your replay, it cleared most. But for better understanding can you give me a practical example (means any flex project file which is build in MVC framework) that would be really great.
Thanks
11/11/2009 2:52:17 AM
Check this link for a good example on Flex and AIR MVC
http://cookbooks.adobe.com/post_Simple_MVC_for_Flex_and_AIR-16199.html