Debug.write( "test it and testprop is " + this.testprop );
Debug.write( "closeWindow in mymy" );
super.closeWindow();
Debug.write( "in the subclass testCall; testProp2 = " + this.testprop2);
Debug.write( "in the subclass testCall; testProp3 = " + this.testprop3);
Debug.write( "in the subclass testCall; testProp4 = " + this.testprop4);
super.testCall();
Checking
var passed = true;
if (this.testprop != "interpreted Right Also") passed = false;
if (this.testprop3 != "interpretedRightAlso2") passed = false;
if (this.testprop4 != "259") passed = false;
result.settext(passed ? "passed" : "failed");
if (passed) {
result.setbgcolor(0xccffcc);
} else {
result.setbgcolor(0xffcccc);
}
Clicking on the
"baseclass" button will show a correct value, "This is Good", because the
attribute value in the call to the instance is being interpreted correctly
with type STRING