10. Doing More with Classes

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.

What is the public Keyword for?

In all the examples you have worked ...

Get Fundamentals of ActionScript 3.0: Develop and Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.