Join Todd Perkins for an in-depth discussion in this video Understanding inheritance, part of Flash CS4 Professional: Object-Oriented Programming .
- View Offline
- Exercise Files
Another important object-oriented concept is something called inheritance.…In this movie we'll talk about what inheritance is and show some examples of it in code.…On the stage here I have a movie clip called tv_mc. If I go to the Actions…panel by selecting the first keyframe of the Actions layer and opening up the…Actions panel, I can modify Properties of the movie clip.…For example if I type tv_mc.x = 0, and I test the movie, the TV will be hugging…the left edge of the stage. If I wanted to change its alpha to 0.5, and test…the movie and the TV will be 50% alpha. So there is a working movie clip,…pretty simple and I'll delete the code that I just created. I'm going to close…the Actions panel and I'm going to jump over to ActionScript class TV.as.…
Later in this movie we'll link this ActionScript class to the TV movie clip.…I am going to expand my code running area by minimizing the Timeline in the…Properties panel. So here let's create a basic class. So package, some curly…braces, public class TV, remember it matches the name of the as file. And we're…
- 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.