When you program in ActionScript using classes, you are using a coding process known as Object-Oriented Programming (OOP). One of the tenets of OOP is that all your objects have an interface, or a way that you can access their actions, data, and procedures. This interface is defined through public and private controls on your attributes or methods.
There are techniques in ActionScript to restrict that interface, limiting access to properties or methods of a class to prevent errors or restrict the functionality of the project. In this chapter, you’ll learn some of these techniques and learn how to create a streamlined interface for your application.
In all the examples you have worked ...