03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Indicates the beginning of a script comment. Any characters that appear between the<br />

comment delimiter (//) <strong>and</strong> the end-of-line character are interpreted as a comment <strong>and</strong><br />

ignored by the ActionScript interpreter.<br />

Oper<strong>and</strong>s<br />

comment - Any characters.<br />

Example<br />

The following script uses comment delimiters to identify the first, third, fifth, <strong>and</strong> seventh<br />

lines as comments:<br />

// record the X position of the ball movie clip<br />

var ballX:Number = ball_mc._x;<br />

// record the Y position of the ball movie clip<br />

var ballY:Number = ball_mc._y;<br />

// record the X position of the bat movie clip<br />

var batX:Number = bat_mc._x;<br />

// record the Y position of the ball movie clip<br />

var batY:Number = bat_mc._y;<br />

See also<br />

/* block comment delimiter operator<br />

&& logical AND operator<br />

expression1 && expression2<br />

Performs a Boolean operation on the values of one or both of the expressions. Evaluates<br />

expression1 (the expression on the left side of the operator) <strong>and</strong> returns false if the<br />

expression evaluates to false. If expression1 evaluates to true, expression2 (the<br />

expression on the right side of the operator) is evaluated. If expression2 evaluates to true,<br />

the final result is true; otherwise, it is false. Expression Evaluates true&&true true<br />

true&&false false false&&false false false&&true false<br />

Oper<strong>and</strong>s<br />

expression1 : Number - A Boolean value or an expression that converts to a Boolean value.<br />

expression2 : Number - A Boolean value or an expression that converts to a Boolean value.<br />

Returns<br />

Boolean - A Boolean result of the logical operation.<br />

Operators 147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!