11edd593f97b5b0efec01eafcd37f6190dbfe40f
[swftools.git] / lib / as3 / ok / const.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4         
5         const ok1:String = "ok 1/4";
6         static const ok2:String = "ok 2/4";
7         
8         const ok3:String = "ok 3/4";
9         static const ok4:String = "ok 4/4";
10         
11         const ok5:String = "ok 3/4";
12         static const ok6:String = "ok 4/4";
13
14         function Main() {
15             trace(ok1);
16             trace(ok2);
17             trace(this.ok3);
18             trace(Main.ok4);
19             f1();
20             f2();
21             
22             trace("[exit]");
23         }
24         function f0(x:Number=1000)
25         {
26         }
27         function f1(x:String=ok5)
28         {
29             trace(x);
30         }
31         function f2(x:String=ok6)
32         {
33             trace(x);
34         }
35     }
36 }