. (dot)
97
var z:Number = 0;
v = (v + 4, z++, v + 6);
trace(v); // output: 6
trace(z); // output: 1
See also
() (parentheses)
. (dot)
Availability
Flash Player 4.
Usage
object.property_or_method
instancename.childinstance
Parameters
object
An instance of a class. The object can be an instance of any of the built-in ActionScript
classes or a custom class. This parameter is always to the left of the dot (.) operator.
property_or_method
The name of a property or method associated with an object. All the
valid methods and properties for the built-in classes are listed in the method and property
summary tables for that class. This parameter is always to the right of the dot (.) operator.
instancename
The instance name of a movie clip.
childinstance
A movie clip instance that is a child of, or nested in, another movie clip.
Returns
The method, property or movie clip named on the right side of the dot.
Description
Operator; used to navigate movie clip hierarchies to access nested (child) movie clips, variables, or
properties. The dot operator is also used to test or set the properties of an object or top-level class,
execute a method of an object or top-level class, or create a data structure.
For more information, see
“Operator precedence and associativity” on page 32
.
Example
The following example identifies the current value of the variable
hairColor
in the movie clip
person_mc
:
person_mc.hairColor
The following example creates a new movie clip within the
_root
scope. Then a text field is
created inside the movie clip called
container_mc
. The text field’s
autoSize
property is set to
true
and then populated with the current date.
this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
Summary of Contents for FLEX-FLEX ACTIONSCRIPT LANGUAGE
Page 1: ...Flex ActionScript Language Reference...
Page 8: ......
Page 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Page 76: ......
Page 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Page 135: ...case 135 See also break default strict equality switch...
Page 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Page 808: ...808 Chapter 7 ActionScript for Flash...
Page 810: ...810 Appendix A Deprecated Flash 4 operators...
Page 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Page 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Page 822: ...822 Index...