![MACROMEDIA FLASH 8-FLASH Reference Download Page 85](http://html2.mh-extra.com/html/macromedia/flash-8-flash/flash-8-flash_reference_3347197085.webp)
// (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)
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...