O'Reilly logo

Fundamentals of ActionScript 3.0: Develop and Design by Doug Winnie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required