Killing Moon Software Community Zone
director

« Director Index

Inheritance
DCR Theft
 

Results

These are the results that I get with my copy of Director, or the Shockwave 8.5.1 player:

(script "A").new()
Instantiating A: me = <offspring "A" 2 22a1e4>

(script "B").new()
Instantiating A: me = <offspring "A" 2 22a144>
Instantiating B: me = <offspring "B" 2 22a158>

Script Information:
a = <offspring "A" 2 22a1e4>
b = <offspring "B" 2 22a158>
b.ancestor = <offspring "A" 2 22a144>

a.dump()
me = <offspring "A" 3 22a1e4>
one = A
me.one = A
me.getaProp(#one) = A
two = A
me.two = A
me.getaProp(#two) = A
me.getaProp(#b) = VOID

b.dump()
me = <offspring "B" 3 22a158>
one = B
me.one = B
two = B
me.two = B

b.ancestor.dump()
me = <offspring "A" 3 22a144>
one = A
me.one = A
me.getaProp(#one) = A
two = A
me.two = A
me.getaProp(#two) = A
me.getaProp(#b) = VOID

callAncestor( #dump, b )
me = <offspring "B" 3 22a158>
one = A
me.one = B
me.getaProp(#one) = B
two = A
me.two = B
me.getaProp(#two) = B
me.getaProp(#b) = B

The results may vary from system to system, and have yet to be verified on any platform other than Director 8.5.1. The following conclusions assume the above results.


 
Copyright © Robert Tweed, 2001-2005