added kerning support to record device
[swftools.git] / lib / as3 / ok / if.as
1 package {
2     import flash.display.MovieClip;
3     public class Main extends flash.display.MovieClip {
4         function Main() {
5             if(true) trace("ok 1/5");
6             if(false) trace("error");
7             if(1+1==2) trace("ok 2/5");
8             if(1+1==3) trace("error");
9             if(1+1!=2) trace("error");
10             if(1+2==3) trace("ok 3/5");
11
12             if(1+1==3) {} else {trace("ok 4/5");}
13
14             if(false) trace("error");
15             else if(false) trace("error");
16             else if(true) trace("ok 5/5");
17             else if(false) trace("error");
18
19             if(true) {
20                 var x;
21             } else {
22                 var x;
23             }
24
25             trace("[exit]");
26         }
27     }
28 }