append [exit] after end of output
[swftools.git] / lib / as3 / ok / boundmethod.as
index 885e5b3..0a18e7e 100644 (file)
@@ -1,5 +1,14 @@
 package {
     import flash.display.MovieClip;
+
+    public class Other {
+        var a="ok 3/3";
+
+        function print2() {
+            trace(this.a);
+        }
+    }
+
     public class Main extends flash.display.MovieClip {
         internal var r;
         function print(s) {
@@ -8,8 +17,13 @@ package {
         }
         function Main() {
             var x = this.print;
-            this.r = "ok 2/2";
-            x("ok 1/2");
+            this.r = "ok 2/3";
+            x("ok 1/3");
+
+            x = (new Other).print2;
+            x();
+            
+            trace("[exit]");
         }
     }
 }