EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - Page 177

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
About operators 177
About multiplicative operators” on page 187
About additive operators” on page 187
“Using numeric operators” on page 188
About relational operators” on page 189
About equality operators” on page 189
“Using relational and equality operators” on page 190
About assignment operators” on page 193
“Using assignment operators” on page 194
About logical operators” on page 194
“Using logical operators” on page 195
About bitwise shift operators” on page 196
About bitwise logical operators” on page 197
“Using bitwise operators” on page 197
About the conditional operator” on page 199
“Using operators in a document” on page 199
For information on operators, that do not fall into these categories, see the ActionScript 2.0
Language Reference, which contains information about all the operators you can use.
The following sections show you some common uses for operators. For more information on
using many operators in a single code sample, see “Using operators in a document”
on page 199.
Using operators to manipulate values
Operators are commonly used to manipulate values in Flash. For example, you might want to
create a game in Flash where the score changes depending on the users interaction with
instances on the Stage. You can use a variable to hold the value and operators to manipulate
the value of the variable.
For example, you might want to increase the value of a variable called
myScore. The following
example demonstrates how to use the + (addition) and += (addition assignment) operators to
add and increment values in your code.

Table of Contents

Related product manuals