added assert() in cut_last_push
[swftools.git] / lib / as3 / ok / break-label.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4         function Main() {
5             var i,j,k;
6
7             outerloop:
8             for(i=0;i<100;i++) {
9                 var x1:String;
10                 for(j=0;j<100;j++) {
11                     var x2:String;
12                     for(k=0;k<100;k++) {
13                         var x3:String;
14                         trace("ok 1/2");
15                         break outerloop;
16                         trace("error");
17                     }
18                     trace("error");
19                 }
20                 trace("error");
21             }
22             
23             for(i=0;i<100;i++) {
24                 var x1:String;
25                 midloop:
26                 for(j=0;j<100;j++) {
27                     var x2:String;
28                     for(k=0;k<100;k++) {
29                         var x3:String;
30                         trace("ok 2/2");
31                         break midloop;
32                         trace("error");
33                     }
34                     trace("error");
35                 }
36                 break;
37                 trace("error");
38             }
39         }
40     }
41 }
42