Join Todd Perkins for an in-depth discussion in this video Planning an MVC application, part of Flash CS4 Professional: Object-Oriented Programming .
When you are creating your own Model View Controller pattern, you need to do…three things. I call these the three Ds. The first D is to define Model, View…and Controller roles. So what you want to do is figure out what the Model is…going to do, what the View is going to do and what the Controller is going to do. …So you need to have conceptual idea of your application and how it's going…to work from the ActionScript object-oriented perspective.…
Second D is to determine how classes will exchange data. The most common way to…exchange data in a Model View Controller application is having the model…dispatch events and having the view respond to those events. If there needs to…be a different way to exchange data, plan out how that will work or at least…think about it and then finally, if you are a visual person like I am, …draw a quick sketch of your application on paper.…For some reason, this helps me a lot when I'm programming. I'll draw out a…really simple sketch of my application using rectangles and simple shapes and…
- Loading external text, images, and XML files
- Creating essential properties for a View class
- Defining a Model class
- Building and implementing interfaces and designs
- Debugging projects
- Building applications with Controller-class buttons
Skill Level Intermediate
1. ActionScript 3.0 Essentials
2. Advanced ActionScript Techniques
3. Object-Oriented Programming Fundamentals
4. The Model View Controller Design Pattern
5. Building a Model Class
6. Building a View Class
7. Building a Controller Class
8. Improving and Debugging the Application
9. Moving Forward
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.