Join Todd Perkins for an in-depth discussion in this video Understanding access modifiers, part of Flash CS4 Professional: Object-Oriented Programming .
To control encapsulation ActionScript 3.0 has something called access…modifiers. This allows you to define what properties and methods are available…behind the scenes or exposed to everyone.…The first access modifier is something that we have used a lot so far. It's the…Public access modifier. Properties and methods and classes for that matter that…are declared as public are accessible everywhere. That means public properties…and methods can be accessed on an object from anywhere. It doesn't have to be…inside of the same class where it was defined. It could be in any other class…or in the main Timeline of an FLA file or the Timeline of any movie clip even…in an FLA file.…
The next access modifier is the Private access modifier. Private properties and…methods are only accessible within the class in which they are defined. So if I…had a class called TV and I had a private property called Channel, the Channel…property would only be accessible inside of the TV class and if I try to access…that property anywhere outside of that class I would get an error. This keeps…
- 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.