git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactored, added stubs for xml operators
[swftools.git]
/
lib
/
as3
/
ok
/
dynamicobj.as
diff --git
a/lib/as3/ok/dynamicobj.as
b/lib/as3/ok/dynamicobj.as
index
ef7294d
..
d758b26
100644
(file)
--- a/
lib/as3/ok/dynamicobj.as
+++ b/
lib/as3/ok/dynamicobj.as
@@
-2,16
+2,26
@@
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");
x.f = function() {trace("ok 2/2")};
x.f();
if(x["two"]==2) trace("ok 1/2");
x.f = function() {trace("ok 2/2")};
x.f();
+
+ trace("[exit]");
}
}
}
}
}
}