new parameter -s textonly
[swftools.git] / 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/4";
6         internal var s2;
7         public function printok1() {
8             trace("ok 1/4");
9         }
10         public function printok2(x:uint) {
11             trace(this.s0);
12         }
13         public function printok3() {
14             trace(this.s2);
15         }
16         function Main() {
17
18             this.printok1();
19             this.s0 = "ok 2/4";
20             this.printok2(0);
21
22             // member w/ default value:
23             trace(this.s1);
24
25             //omit "this":
26             s2 = "ok 4/4";
27             printok3();
28             
29             trace("[exit]");
30         }
31     }
32 }