Join Todd Perkins for an in-depth discussion in this video Defining the Model class, part of Flash CS4 Professional: Object-Oriented Programming .
- View Offline
- Exercise Files
We are going to start out our slideshow application by creating the Model class first. …In our slideshow application, we are going to use XML data for the model. …Remember that the model is the class that controls the data, however,…we may not be using XML data in every model we create. What we are going to do…with this Model class is to basically create a super class for all models in…the future to extend. So basically this is just going to have the general…functionality that's going to be needed in every model.…
So we will start by creating a package. So if you are creating this file from…scratch, just make sure that you save it in a folder called mvc, all lowercase.…And then we will put this in the package mvc. mvc is just short for Model View Controller. …So we are going to put all of our classes that are related to…Model View Controller inside of this package. Put some curly braces there and we will…define the class. So it's going to be a public class Model and it's actually…going to extend the EventDispatcher class.…
- 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.