1 // makeswf -v 7 -s 200x150 -r 1 -o isnan.swf isnan.as
3 trace
("Check isNaN and isFinite");
4 numbers
= [ Infinity, -Infinity, NaN, 0, this, true ];
5 for (i
= 0; i
< numbers
.length
; i
++) {
6 trace
(numbers
[i
] + (isFinite
(numbers
[i
]) ? ": finite" : ": inifinite") + (isNaN
(numbers
[i
]) ? ", NaN" : ""));
9 loadMovie
("FSCommand:quit", "");