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

Get AdvancED ActionScript 3.0: Design Patterns 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.