ActionScript 2.0 语言参考 |
|
|
|
| ActionScript 语言元素 > 运算符 > // 注释行分隔符运算符 | |||
// 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;
|
|
|
|