Hi,
I'm trying to make a simple test case that creates a class with a custom
constructor. It's based on the LzMediaLoader class in the LFC. I want
to keep it as similar the the LFC class as possible. Can you take a
look and tell me what I got wrong? In DHTML it fails due to 'too much
recursion' creating the class, while SWF does even less:
<canvas width="800" height="400">
<script>
LzTestEventReg = new Class(
"LzTestEventReg",
function ( owner , args ) {
//todo: this isn't working: why?
this.removeLoadCheckerDel =
new LzDelegate( this, "removeLoadChecker", this,
"onloaddone" );
}
);
LzTestEventReg.prototype.removeLoadCheckerDel = function() {
Debug.write('removeLoadCheckerDel');
}
LzTestEventReg.prototype.testDel = function() {
this.onloaddone.sendEvent();
}
DeclareEvent(LzTestEventReg.prototype, 'onloaddone' );
var foo = new LzTestEventReg();
foo.testDel();
</script>
</canvas>
Thanks!
-Max
_______________________________________________
Laszlo-dev mailing list
Laszlo-dev@openlaszlo.org
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev