• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Objects and Classes > Object Properties

12.3. Object Properties

As you learned earlier, properties are named data containers associated with an object. They are defined once by an object's class but set individually for each object instance. Like variables, object properties can contain any kind of data—strings, numbers, Booleans, null, undefined, functions, arrays, movie clips, or even other objects.

12.3.1. Referring to Properties

The familiar dot operator gives us access to an object's properties. We separate the name of the property from the object it belongs to using a dot (a period), as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint