90
Flash Lite Operators
Example
The following example uses ++ as a post-increment operator to make a
while
loop run five
times:
i = 0;
while (i++ < 5){
trace("this is execution " + i);
}
The following example uses ++ as a pre-increment operator:
a = "";
i = 0;
while (i < 10) {
a = a add (++i) add ",";
}
trace(a);// output: 1,2,3,4,5,6,7,8,9,10,
This script shows the following result in the Output panel:
1,2,3,4,5,6,7,8,9,10,
The following example uses ++ as a post-increment operator:
a = "";
i = 0;
while (i < 10) {
a = a add (i++) add ",";
}
trace(a);// output: 0,1,2,3,4,5,6,7,8,9,
This script shows the following result in the Output panel:
0,1,2,3,4,5,6,7,8,9,
&& (logical AND)
Availability
Flash Lite 1.0.
Usage
expression1
&&
expression2
Operands
expression1, expression2
Boolean values or expressions that convert to Boolean values.
Содержание FLASH 8-FLASH
Страница 1: ...Flash Lite 1 x ActionScript Language Reference...
Страница 6: ...6 Contents...
Страница 46: ...46 Flash Lite Global Functions...
Страница 62: ...62 Flash Lite Properties...
Страница 76: ...76 Flash Lite Statements...
Страница 110: ...110 Flash Lite Operators...
Страница 162: ...162 Index...