Accessing object properties

Use the dot (.) operator to access the value of a property in an object. Put the name of the object on the left side of the dot, and put the name of the property on the right side. For example, in the following statement, myObject is the object and name is the property:

myObject.name

The following code creates a new TextField object, and then sets its autoSize property to true.

var my_text = new TextField();
my_text.autoSize = true;

You can also use the array access operator ([]) to access the properties of an object. See Dot and array access operators.