(Comment) - 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

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
Any characters.
comment
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)
// (comment)
85

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