git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in links spec
[swftools.git]
/
lib
/
as3
/
ok
/
this.as
diff --git
a/lib/as3/ok/this.as
b/lib/as3/ok/this.as
index
2a35c6c
..
61c70a5
100644
(file)
--- a/
lib/as3/ok/this.as
+++ b/
lib/as3/ok/this.as
@@
-2,10
+2,10
@@
package {
import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
internal var s0;
import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
internal var s0;
- internal var s1:String="ok 3/4";
+ internal var s1:String="ok 3/5";
internal var s2;
public function printok1() {
internal var s2;
public function printok1() {
- trace("ok 1/4");
+ trace("ok 1/5");
}
public function printok2(x:uint) {
trace(this.s0);
}
public function printok2(x:uint) {
trace(this.s0);
@@
-13,18
+13,30
@@
package {
public function printok3() {
trace(this.s2);
}
public function printok3() {
trace(this.s2);
}
+
+ public function f() {
+ trace("ok 5/5");
+ }
+ public function get_f() {
+ return this["f"];
+ }
+
function Main() {
this.printok1();
function Main() {
this.printok1();
- this.s0 = "ok 2/4";
+ this.s0 = "ok 2/5";
this.printok2(0);
// member w/ default value:
trace(this.s1);
//omit "this":
this.printok2(0);
// member w/ default value:
trace(this.s1);
//omit "this":
- s2 = "ok 4/4";
+ s2 = "ok 4/5";
printok3();
printok3();
+
+ get_f()();
+
+ trace("[exit]");
}
}
}
}
}
}