Naming classes and objects

When you create a new class file, use the following guidelines when you name the class and ActionScript file. For proper formatting, see the following examples of class names:

class Widget;
class PlasticWidget;
class StreamingVideo;

You might have public and private member variables in a class. The class can contain variables that you do not want users to set or access directly. Make these variables private and allow users to access the values only by using getter/setter methods.

The following guidelines apply to naming classes:

For information on interfaces, see Interfaces.


Flash CS3