Line Comment Delimiter Operator; Logical And Operator - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

Operands
expression1 :
Object
expression2 :
Object
Returns
- The result of the comparison.
Boolean
See also
<= less than or equal to operator

// line comment delimiter operator

// comment
Indicates the beginning of a script comment. Any characters that appear between the
comment delimiter (
//)
ignored by the ActionScript interpreter.
Availability: ActionScript 1.0; Flash Lite 1.0
Operands
- Any characters.
comment
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
158
ActionScript language elements
- Numbers, strings, or variables.
- Numbers, strings, or variables.
and the end-of-line character are interpreted as a comment and

Advertisement

Table of Contents
loading

Table of Contents