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

8. What is a Class?

As your projects become more complex, having all your code in a frame script will become cumbersome and difficult to maintain. You need a way to structure your code and link code to the objects themselves. You need classes. The term for using classes to structure your code is object-oriented programming.

ActionScript allows you to define the classes, or building blocks, of applications, and give them specific actions and functionality. Let’s start by exploring how classes work and dive deeper into the topic of variables. From there we’ll discuss how classes are created and how to add functionality to them using methods. Finally, you’ll learn how to formalize your class structures, making them easier to use and debug.

Overview ...

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