Join Todd Perkins for an in-depth discussion in this video Extending the Model class, part of Flash CS4 Professional: Object-Oriented Programming .
Now we are going to extend our model class in a class called SlideshowModel.…So if you don't have the Exercise Files make sure to create the SlideshowModel…class in the same folder as your Model class. So I'm going to declare the…package as mvc, same package as the model and then I'm going to create a public…class called SlideshowModel and it's going to extend the Model class.…It's important here to know that you don't need to import the Model class…because the class is in the same package as SlideshowModel. Whenever you are…working with something that's in the same package, you don't need to worry about importing it.…
Now let's declare the Constructor method, public function SlideshowModel,…some parenthesis and some curly braces, and there is our constructor. And then the…last thing that we are going to do is import the event class because we are…going to be using it in this class. So import flash.events.Event. That's it.…Save the file and to make sure it's working, you can just jump over to our FLA file.…
- 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.