172
ActionScript language elements
// line comment delimiter operator
//
comment
Indicates the beginning of a script comment. Any characters that appear between the
comment delimiter (
//)
and the end-of-line character are interpreted as a comment and
ignored by the ActionScript interpreter.
Availability:
ActionScript 1.0; Flash Player 1.0
Operands
comment
- Any characters.
Example
The following script uses comment delimiters to identify the first, third, fifth, and seventh
lines as comments:
// record the X position of the ball movie clip
var ballX:Number = ball_mc._x;
// record the Y position of the ball movie clip
var ballY:Number = ball_mc._y;
// record the X position of the bat movie clip
var batX:Number = bat_mc._x;
// record the Y position of the ball movie clip
var batY:Number = bat_mc._y;
See also
/*..*/ block comment delimiter operator
&& logical AND operator
expression1
&&
expression2
Performs a Boolean operation on the values of both expressions. If
expression1
and
expression2
are both
true
, then
true
is returned; otherwise,
false
is returned.
Availability:
ActionScript 1.0; Flash Player 4
Expression Evaluates
true&&true
true
true&&false
false
false&&false
false
false&&true
false
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...