User Guide

Table Of Contents
// (comment) 85
The following example is identical to the previous example except for the addition of the
parentheses
() operator and illustrates once again that when used with the parentheses ()
operator, the comma (
,) operator returns the value of the last expression in the series:
v = 0;
z = 0;
v = (v + 4, z++, v + 6);
trace(v); // output: 6
trace(z); // output: 1
See also
for, () (parentheses)
// (comment)
Availability
Flash Lite 1.0
Usage
// comment
Operands
comment Any characters.
Description
Comment delimiter; 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.
Example
The following example uses comment delimiters to identify the first, third, fifth, and seventh
lines as comments:
// Record the X position of the ball movie clip.
ballX = ball._x;
// Record the Y position of the ball movie clip.
ballY = ball._y;
// Record the X position of the bat movie clip.
batX = bat._x;
// Record the Y position of the bat movie clip.
batY = bat._y;
See also
/* (block comment)