O'Reilly logo

AdvancED ActionScript 3.0: Design Patterns by Ben Smith

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

Parts of a Class

Even the most introductory ActionScript books cover the creation of custom classes (see Table 1-5). Often, this is to demonstrate the use of the language. It would be beyond the scope of those books to ensure that you have the proper object-oriented mindset as you construct your classes. With this in mind, don't be too anxious to skip ahead if you feel you may already be familiar with constructing classes.

Image

Figure 1-4. The expected syntax and structure to properly define a custom class

On line 4 in Figure 1-4, you used the keyword class to signify that the following definition relates to a class. The class directive can include ...

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