Ron, Two suggestions on samples of MVC with Flex 2: 1) http://cairngormdocs.org/ This link has several levels of downloadable "Example Apps" 2) http://www.adobe.com/devnet/flex/articles/blueprint.html In the article at this link Joe Berkovitz gives a fantastically concise walkthrough of MVC in Flex along with downloadable source files for a sample app. It is not Cairngorm, but still well worth the read.
For a detailed explanation of how Cairngorm handles the view, you can start with this 3rd of a 6 part series by Steven Webster: http://www.adobe.com/devnet/flex/articles/cairngorm_pt3.html I also recently purchased AAS3DP. After you work through all of these issues, I certainly would appreciate your posting back with commentary on which of these sources you find best explains the "why's" and "how-to's"? hth, g On 12/27/06, rd_grimes <[EMAIL PROTECTED]> wrote:
I am reading the book, "Advanced Actionscript 3 with Design Patterns", and must confess that I've never truly followed proper OOD/OOP in writing my Flash 8 web apps. But, now that I'm doing my first Flex 2 web app, I figured I really should do this the "right way" by implementing a proper MVC design. Separating out the model portion was no problem. I'm properly programming to Interfaces, defining abstract classes to be inherited by the concrete classes, etc. It's completely unaware of the view and controller. So, this part is fine. The question I have, which really isn't addressed in the above- mentioned book, is how to properly design the controller and view when you're not completely creating the view via ActionScript. I mean, it's easy to see how the distinctions when you do as they do in the book and extend the Sprite class and draw the entire view yourself. But, what about when the bulk of your view is defined in an mxml document? If anyone has a good sample flex 2 project they would be willing to share where I could see how you did it, that would be great. Ron