// 注释行分隔符运算符

// comment

指示脚本注释的开始。出现在注释分隔符 (//) 和行结束字符之间的任何字符都被 ActionScript 解释程序解释为注释并忽略。

可用性:Flash Player 1.0;ActionScript 1.0

操作数

comment - 任何字符。

示例

下面的脚本使用注释分隔符将第一、第三、第五和第七行标识为注释:

// 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; 

另请参见

/*..*/ 注释块分隔符运算符