header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Sachin

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,



FlashGuru
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).

Sachin
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

RedFlex
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


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 8+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions