// (comment delimiter)
Availability
Flash 1.
Usage
// comment
Parameters
Any characters.
comment
Returns
Nothing.
Description
Comment; indicates the beginning of a script comment. Any characters that appear between the
comment delimiter (
by the ActionScript interpreter.
For more information, see "Deprecated Flash 4 operators" in Using ActionScript in Flash.
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
/* (comment delimiter)
54
Chapter 2: ActionScript Language Reference
and the end-of-line character are interpreted as a comment and ignored
//)
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?