3 class Test
extends MovieClip
9 note
("Test constructor called");
12 // Override MovieClip.lineTo
17 function test_proto_ext
()
19 note
("This is "+this);
20 Function.prototype
.make
= function() { return true; };
21 check
(arguments.callee
.make
());
24 function test_laszlo_core
()
26 var A
= function() { this.constructor
= arguments.callee
; };
27 A
.prototype
.test
= function () { return true; }
29 var B
= function () { this.constructor
= arguments.callee
; }
31 B
.prototype
= new A
();
33 B
.prototype
.test
= function () {
34 check
( this.constructor
.prototype
.constructor
.prototype
.test
() );
38 check_equals
(typeof(binst
), 'object');
39 check_equals
(typeof(binst
.test
), 'function');
40 note
("test_laszlo_core called");
46 check_equals
(typeof(this.loadMovie
), 'function');
47 check_equals
(this.loadMovie
, super.loadMovie
);
48 check
(this.lineTo
!= super.lineTo
); // overridden
49 check_equals
(typeof(this.test_laszlo_core
), 'function');
50 check_equals
(typeof(this.test_proto_ext
), 'function');
51 this.test_laszlo_core
();
52 check_equals
(typeof(this.test_laszlo_core
), 'function');
53 check_equals
(typeof(this.test_proto_ext
), 'function');
54 this.test_proto_ext
();
55 check_equals
(typeof(this.test_laszlo_core
), 'function');
56 check_equals
(typeof(this.test_proto_ext
), 'function');
57 note
("This is "+this);
61 static function main
(mc
)
63 var myTest
= new Test
;