add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / scope-chain-this.as
blobc8e859378c7247b5dca4e063ed05e09a0fffe7f5
1 // makeswf -v 7 -s 200x150 -r 1 -o scope-chain-this.swf scope-chain-this.as
2 // taken with permission from http://www.timotheegroleau.com/Flash/articles/scope_chain.htm
4 a = 5;
5 test = function() {
6 trace(this.a);
7 };
9 obj = new Object();
10 obj.a = 6;
11 obj.meth = test;
13 obj2 = new Object();
14 obj2.a = 7;
15 obj2.meth = test;
17 obj.meth(); // 6
18 obj2.meth(); // 7
20 loadMovie ("FSCommand:quit", "");