made segment direction fill-sensitive
[swftools.git] / lib / as3 / ok / this.as
1 package {
2     import flash.display.MovieClip
3     public class Main extends flash.display.MovieClip {
4         internal var s0;
5         internal var s1:String="ok 3/5";
6         internal var s2;
7         public function printok1() {
8             trace("ok 1/5");
9         }
10         public function printok2(x:uint) {
11             trace(this.s0);
12         }
13         public function printok3() {
14             trace(this.s2);
15         }
16
17         public function f() {
18             trace("ok 5/5");
19         }
20         public function get_f() {
21             return this["f"];
22         }                                                                                                         
23
24         function Main() {
25
26             this.printok1();
27             this.s0 = "ok 2/5";
28             this.printok2(0);
29
30             // member w/ default value:
31             trace(this.s1);
32
33             //omit "this":
34             s2 = "ok 4/5";
35             printok3();
36
37             get_f()();
38             
39             trace("[exit]");
40         }
41     }
42 }