more ttf bug fixes
[swftools.git] / lib / as3 / ok / dynamicobj.as
1
2 package {
3     import flash.display.MovieClip
4     public class Main extends flash.display.MovieClip {
5
6         function test_empty_curlies() {
7             var y:Object = {};
8             if(true) {}
9             {}
10         }
11
12         function Main() {
13             var x:Object = 
14             {"one": 1,
15              "two": 2,
16              "three": 3
17             };
18             
19             if(x["two"]==2) trace("ok 1/3");
20
21             x.f = function() {trace("ok 2/3")};
22             x.f();
23
24             var str:String = "key";
25             var y:Object = {str:{}};
26
27             var z:Object = 
28             {one: 1,two: 2,three: 3};
29
30             if(z.two == 2) trace("ok 3/3");
31
32             trace("[exit]");
33         }
34     }
35 }
36