git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added pdf2pdf tool
[swftools.git]
/
lib
/
as3
/
ok
/
dynamicobj.as
diff --git
a/lib/as3/ok/dynamicobj.as
b/lib/as3/ok/dynamicobj.as
index
ef7294d
..
28f2f09
100644
(file)
--- a/
lib/as3/ok/dynamicobj.as
+++ b/
lib/as3/ok/dynamicobj.as
@@
-2,16
+2,34
@@
package {
import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
package {
import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
+
+ function test_empty_curlies() {
+ var y:Object = {};
+ if(true) {}
+ {}
+ }
+
function Main() {
var x:Object =
{"one": 1,
"two": 2,
function Main() {
var x:Object =
{"one": 1,
"two": 2,
- "three": 3,
+ "three": 3
};
};
- if(x["two"]==2) trace("ok 1/2");
+
+ if(x["two"]==2) trace("ok 1/3");
- x.f = function() {trace("ok 2/2")};
+ x.f = function() {trace("ok 2/3")};
x.f();
x.f();
+
+ var str:String = "key";
+ var y:Object = {str:{}};
+
+ var z:Object =
+ {one: 1,two: 2,three: 3};
+
+ if(z.two == 2) trace("ok 3/3");
+
+ trace("[exit]");
}
}
}
}
}
}