In general, any action statement that you specify for an individual object can also be specified for a class of objects. The following provides examples of representative statements:
delete Positions # Deletes all of the objects in the
# Positions class.
clear Positions # Deletes the contents of the objects
# in the Positions class, but does not
# delete the objects themselves.
add to Keys # Adds a move statement to the object
move to 0 0 # definitions of all of the objects
# in the Keys class.
make DangerGauges red # Changes to red the colors of
# all of the objects in the
# DangerGauges class.
make Messages invisible # Makes all of the objects in
# the Messages class invisible.
enable Buttons # Makes all of the objects in the
# Buttons class selectable.
Caution: Be careful when you use action statements for objects that belong to classes, or for objects whose children belong to classes. Some action statements delete children: for example, before you use the change, clear, or delete action statements (described earlier in this chapter) for an object, you must first delete its children from any classes to which they belong, using the delete from class action statement described below.
In addition, there are two action statements unique to classes: the add to class and the delete from class statements.