Join Todd Perkins for an in-depth discussion in this video Understanding polymorphism, part of Flash CS4 Professional: Object-Oriented Programming .
In this movie we will look at yet another object-oriented programming term.…This one is called Polymorphism. Polymorphism is actually a lot less…complicated than it sounds, but you can sound really cool if you know what it means.…On the stage here I have a movie clip called tv_mc that if you look in the…Library is connected to TV class. You could see that under the Linkage column…in the Library. The TV class is just a simple class; it basically extends the…movie clip adding one extra method called getChannel.…
Let's go to the first keyframe of the Actions layer and open up the Actions panel. …If we trace tv_mc, let's see what we get in the Output window.…object TV. In other words tv_mc is an instance of the TV class. It inherits from the…movie clip class, but is not a movie clip.…Polymorphism is basically the concept where an object that inherits from…another class can be used in place of an instance from that class. That may…sound complicated, but it's actually pretty simple. Let's say I made a function…
- 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.