(Assignment) - MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Description
Operator; performs a logical AND operation.
Example
The following example uses the
variable and the
turns
during the game. The following script shows "You Win the Game!" in the Output panel when
the player's score reaches 75 or higher in three turns or less.
turns = 2;
score = 77;
winner = (turns <= 3) and (score >= 75);
if (winner) {
trace("You Win the Game!");
} else {
trace("Try Again!");
}
// output: You Win the Game!
See also
&& (logical AND)

= (assignment)

Availability
Flash Lite 1.0.
Usage
expression1 = expression2
Operands
A variable or a property.
expression1
A value.
expression2
Description
Operator; assigns the value of
property in
expression1
82
Flash Lite Operators
operator to test whether a player has won the game. The
and
variable are updated when a player takes a turn or scores points
score
expression2
.
(the operand on the right) to the variable or

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Table of Contents