The dot operator (.) provides a way to access the properties and methods of an object. Using dot syntax, you can refer to a class property or method using an instance name, followed by the dot operator and name of the property or method. For example, consider the following
class definition:
class DotExample {
public var prop1:String;
pubic function method1 () {}
}
Using dot syntax, you can access the prop1 property and the method1 method using the instance name created in following code:
var myDotEx:DotExample = new DotExample();
myDotEx.prop1 = “hello”;
myDotEx.method1();
Dot syntax can also be used when defining packages. You use the dot operator to refer to nested packages. For example, the EventDispatcher class resides in a package named events that is nested within the package named flash. You can refer to the events package using the following expression: flash.events You can also refer to the EventDispatcher class using this expression:
flash.events.EventDispatcher