Can anyone take me in step by step to understand MVC design pattern
Hi Everybody,
I just killed myself trying to understand what is MVC and how to apply it to flash (AS3) the easy way but I could not, there is a lot of information on MVC on google but it is very hard I can not understand it and apply it to anykind of application or game, I had created a lot of games but using flash timeline (puzzle, multipel choice, simple physics interaction) and I understand that we must separte the design interface and the data of the application and the code into diffrent blocks, but what I understand is:
1- making a SWC for the design. (View)
2- use XML or TEXT file for the data.(Model)
3- classes for the code.(Controller)
this is MVC that I understand, but all the tutorials on the net is about creating 3 classes and calling each other in a very diffuclt code to understand, I realy need to work the proffessional way but it is very hard and far away from my understanding.
if any body have a way to let me understand it like making a template for every MVC application or game and explain to me his/her code it will be great, some of my questions are:
1- how we say about a class that it is the view part of the pattern while we have a SWC that hold the intreface graphics?
2- dose making a sepreate class to load and fetch external data sources like xml and text means I had created the model part of the pattern, and why the tutorials on the net do not say that if it is true?
3- making the logic of the application or game sepreated into class for each logic block, makes the controller part of the pattern?
I realy do not know what to ask more because I do not understand the MVC design pattern
Please note: if someone can chat with me on skype it will be great, but if you want to explain here also good but I need to understand it is making me crazy!
thanks in advance