Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 72

Programming actionscript 3.0
Table of Contents

Advertisement

public function method1():void {}
}
Using dot syntax, you can access the
property and the
method using the
prop1
method1()
instance name created in the following code:
var myDotEx:DotExample = new DotExample();
myDotEx.prop1 = "hello";
myDotEx.method1();
You can use dot syntax when you define 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
Slash syntax
Slash syntax is not supported in ActionScript 3.0. Slash syntax was used in earlier versions of
ActionScript to indicate the path of a movie clip or variable.
Literals
A literal is a value that appears directly in your code. The following examples are all literals:
17
"hello"
-3
9.4
null
undefined
true
false
Literals can also be grouped to form compound literals. Array literals are enclosed in bracket
characters (
) and use the comma to separate array elements.
[]
72
ActionScript Language and Syntax

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents