Join Todd Perkins for an in-depth discussion in this video Defining the View class, part of Flash CS4 Professional: Object-Oriented Programming .
In this chapter, we are going to be looking at the View classes of our…application. Remember the View class controls what the user sees and it's…dependent on updates of the model. My View class here is saved in the mvc…folder, so it's in the MVC package.…So we will create the class. So we'll declare that it's in the MVC package and…it's a public class called View, just like the name of the file, capital V. And…just like the model class we created, this is going to be a View class that can…be extended to add specific functionality. So this is going to be the view…super class. This class isn't going to extend any other class.…
So I'm going to write some curly braces there, and before we move on, I know…I'm going to be using the Event class in here. So I'm going to import the Event…class. Right above the class declaration, import flash.events.Event, capital E.…Then inside of the class we will declare the constructor method. So public…function View, no parameters, and that's it. I'm going to declare one private…
- 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.