gfxpoly: added additional save method
[swftools.git] / lib / as3 / ok / continue.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4         function Main() {
5             var i:int;
6             
7             /* test for loop */
8             var j:int=0;
9             for(i=0;i<100;i++) {
10                 j++;
11                 if(i!=50)
12                     continue;
13                 trace("ok 1/6");
14             }
15             if(j==100)
16                 trace("ok 2/6");
17            
18             /* test while loop */
19             while(i++<200) {
20                 j++;
21                 if(i!=150)
22                     continue;
23                 trace("ok 3/6");
24             }
25             if(j==200)
26                 trace("ok 4/6");
27             
28             /* test do-while loop */
29             
30             do {
31                 j++;
32                 if(i!=250)
33                     continue;
34                 trace("ok 5/6");
35             } while(i++<300);
36
37             if(j==300)
38                 trace("ok 6/6");
39             
40             trace("[exit]");
41         }
42     }
43 }
44