Summary of Properties and Methods

This section gives you a summary of the properties and methods covered in this chapter. This list isn't exhaustive, but it includes some of the handiest and most frequently used tools. You can find a complete list in the Flash CS5 help files: Help→Flash Help→ActionScript 3.0 and ComponentsActionScript 3.0 Language and Components Reference. Look for the DisplayObjectContainer class, and then scroll down to find the properties and methods. If you see a method and want more details about it, click its name.

All display object containers are also descendants of the DisplayObject type. They have all the properties you'd expect in a displayable object, like x/y position coordinates, height, and width. In addition, they have a few properties that are particularly useful in their role as containers. The summary below lists the name of the property in bold, followed by a description, explaining the characteristics of the property and a few details about its use. The formal description is the description found in Adobe's ActionScript 3.0 Reference. It lists the property name, and then on the right side of the colon it shows the data type stored in the property. The formal description is helpful but a little abstract, so this list also provides an example, which is a little more concrete and follows the card table and card theme used throughout this chapter. The examples show how you'd use the property, assuming that the display object container is an instance of a movie clip named greenTable.

When you work with the Display List, you're working with the methods of display object containers. Methods like addChild() and removeChild() are indispensable. The summary list below is made up of three parts. The first part shows the name of the method in bold, and then gives a description, explaining what the method does, and the result or value that comes from the method. There may also be a page reference pointing you to a place in this chapter that provides more details about the method and related issues.

The second part of the summary shows the formal description of the method as provided by Adobe in the help system's ActionScript 3.0 Language and Components Reference. From left to right, the formal description begins with the method name, and then in parentheses shows the parameters required by the method. Parameters include a descriptive word on one side of the colon and the data type on the other side of the colon. Some methods have more than one parameter. On the right side of the parentheses is another colon and a word that describes the data type or class that the method returns. The formal description is somewhat abstract. The examples at the end of each summary are more concrete, showing you how you'd write a statement using the method. The examples continue using the card table and card theme used in this chapter. The assumption is that the display object container in the example is an instance of a movie clip named greenTable. The display object is an instance of a movie clip named "card1." Where a name property is used, card1 has a name property of "Card 1."