class-inheritance-$7.lzx
<canvas debug="true" height="200" width="100%">
<debug height="175"/>
<class name="foo">
<method name="doit">
Debug.debug("foo: this is [%w]", this);
Debug.debug("foo: classroot is [%w]", classroot);
Debug.debug("foo: classroot.classroot is [%w]", classroot.classroot);
</method>
</class>
<class name="boo">
<foo name="myfoo"/>
</class>
<class name="goo">
<boo name="myboo"/>
<handler name="oninit">
myboo.myfoo.doit();
Debug.debug("-----");
Debug.debug("goo: this is [%w]", this);
// error will be displayed -- there is no classroot
Debug.debug("goo: classroot is [%w]", classroot);
</handler>
</class>
<goo name="mygoo"/>
</canvas>
Cross References
Classes
- <class name="foo">
- <class name="boo">
- <class name="goo">
Named Instances