add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / callmethod-this.as
blob3d5f607e42e59aa5790df720f4846ab4b2eaa3d4
1 // makeswf -v 7 -s 200x150 -r 1 -o callmethod-this.swf callmethod-this.as
3 trace ("Check which objects work as this property for a CallMethod action");
5 #include "values.as"
7 function bar () {
8 trace (this);
9 trace (super);
10 this.x = 42;
11 trace (this.x);
13 for (i = 0; i < values.length; i++) {
14 trace ("Calling with " + names[i]);
15 x = values[i];
16 asm {
17 push 0, "bar"
18 getvariable
19 push "x"
20 getvariable
21 callmethod
22 pop
26 loadMovie ("fscommand:quit", "");