git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
char* -> const char*
[swftools.git]
/
lib
/
as3
/
ok
/
boundmethod.as
diff --git
a/lib/as3/ok/boundmethod.as
b/lib/as3/ok/boundmethod.as
index
885e5b3
..
0a18e7e
100644
(file)
--- a/
lib/as3/ok/boundmethod.as
+++ b/
lib/as3/ok/boundmethod.as
@@
-1,5
+1,14
@@
package {
import flash.display.MovieClip;
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) {
public class Main extends flash.display.MovieClip {
internal var r;
function print(s) {
@@
-8,8
+17,13
@@
package {
}
function Main() {
var x = this.print;
}
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]");
}
}
}
}
}
}