gfxpoly: added additional save method
[swftools.git] / lib / as3 / ok / boundmethod.as
1 package {
2     import flash.display.MovieClip;
3
4     public class Other {
5         var a="ok 3/3";
6
7         function print2() {
8             trace(this.a);
9         }
10     }
11
12     public class Main extends flash.display.MovieClip {
13         internal var r;
14         function print(s) {
15             trace(s);
16             trace(this.r);
17         }
18         function Main() {
19             var x = this.print;
20             this.r = "ok 2/3";
21             x("ok 1/3");
22
23             x = (new Other).print2;
24             x();
25             
26             trace("[exit]");
27         }
28     }
29 }