Join Todd Perkins for an in-depth discussion in this video Viewing an MVC application, part of Flash CS4 Professional: Object-Oriented Programming .
In order to understand how the Model View Controller design pattern really works, …I want to show you what it looks like in a real world application.…This application here is very, very simple but it shows you how an MVC or Model View…Controller application can work.…So here I have a TV, a remote and a text field. The TV has a channel. …So the channel is the data and the TV here is going to represent the Model. The TV is…connected to a class called TV and the TV class is very simple. It just has a…private property called channel, which can be accessed through public get and…set methods. Whenever the channel changes, it dispatches an event called…TV.CHANNEL_CHANGE and that's really all there is to it.…
Now let's look at the remote. The data in the TV, or in other words…the channel of the TV, is controlled by the remote. It has Channel Up and…Channel Down buttons. Let's look at the Remote class and see how it is set up.…The Remote class has a property to hold the TV. It has an event listener to listen…
- 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?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
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.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.