Setting component properties in ActionScript

In ActionScript, you use a dot (.) operator (dot syntax) to access properties or methods that belong to an object or instance on the Stage. A dot syntax expression begins with the name of the instance, followed by a dot, and it ends with the element you want to specify. For example, the following ActionScript code sets the width property of the CheckBox instance aCh to make it 50 pixels wide:

aCh.width = 50;

The following if statement checks to see if the user has selected the check box:

if (aCh.selected == true) {
    displayImg(redCar);
}