Object-Oriented Programming with ActionScript 1.0

The information in this appendix comes from the Adobe Flash documentation and provides information on using the ActionScript 1.0 object model to write scripts. It is included here for the following reasons:

If you have never used ActionScript to write object-oriented scripts and don't need to target Flash Player 5, you should not use the information in this appendix because writing object-oriented scripts using ActionScript 1.0 is deprecated. Instead, for information on using ActionScript 2.0, see Classes.

This chapter contains the following sections:

About ActionScript 1.0

Creating a custom object in ActionScript 1.0

Assigning methods to a custom object in ActionScript 1.0

Defining event handler methods in ActionScript 1.0

Creating inheritance in ActionScript 1.0

Adding getter/setter properties to objects in ActionScript 1.0

Using Function object properties in ActionScript 1.0

NOTE

Some examples in this appendix use the Object.registerClass() method. This method is supported only in Flash Player 6 and later versions; don't use this method if you are targeting Flash Player 5.