Appendix B. ActionScript Operators Reference

ActionScript Operators Reference

The following is a list of the operators in ActionScript 3.0:

Basic Operators

The following table shows the operators used throughout the language in a variety of situations.

Operator

Description

Example

=

Assignment; assigns the value on the right to the expression on the left

var name:String = "Mal";

.

Accesses properties or methods of objects or separates class names from package names

mcBox1.scaleX = 42;

()

Groups mathematical operators or invokes functions and methods

this.gotoAndPlay(42);

:

Declares data type

var lastName:String;

+

Concatenates strings

var fullName:String = firstName + " " + lastName;

Mathematical Operators

The following table describes the operators used in mathematical ...

Get ActionScript®: Your visual blueprint™ for creating interactive projects in Flash® CS4 Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.