1 // makeswf -v 7 -r 1 -o implements-7.swf implements.as
3 trace
("Test Implements ActionScript action");
6 trace
("A implements Array, XML");
11 __proto__
: A
.prototype
17 trace
(o instanceOf A
);
18 trace
(o instanceOf
Array);
19 trace
(o instanceOf
XML);
20 trace
(o instanceOf
String);
37 trace
(o instanceOf A
);
38 trace
(o instanceOf
Array);
39 trace
(o instanceOf
XML);
40 trace
(o instanceOf
String);
43 trace
("B changes prototype to A.prototype");
47 __proto__
: B
.prototype
53 trace
(o instanceOf A
);
54 trace
(o instanceOf
Array);
55 trace
(o instanceOf
XML);
56 trace
(o instanceOf
String);
58 B
.prototype
= A
.prototype
;
62 trace
(o instanceOf A
);
63 trace
(o instanceOf
Array);
64 trace
(o instanceOf
XML);
65 trace
(o instanceOf
String);
68 trace
("C has A as parent");
72 __proto__
: C
.prototype
75 C
.prototype
.__proto__
= A
.prototype
;
78 trace
(o instanceOf A
);
79 trace
(o instanceOf
Array);
80 trace
(o instanceOf
XML);
81 trace
(o instanceOf
String);
84 trace
("A.prototype is reset");
86 A
.prototype
= new Object ();
89 trace
(o instanceOf A
);
90 trace
(o instanceOf
Array);
91 trace
(o instanceOf
XML);
92 trace
(o instanceOf
String);
95 loadMovie
("FSCommand:quit", "");