Hello Friends,
I'm porting examples in the tutorials to dhtml and am stumped by a
line in the calculator turorial.
It runs OK in SWF.
When I run in DHTML (after commenting out the impoted fonts) the
OpenLaszlo spinner spins and nothing else happens. With debugging
enabled, no bugs are reported. However, Firebug gives a clue, which
allows me to find a problematic line in the lzx.
I can make the error go away by commenting out this line:
this.allOperators = new array( '+', '-', '/', '*' );
which appears in this method:
<method name="start">
this.valueX = 0;
this.lastInput = 'none';
this.oldValue = false;
// this.allOperators = new array( '+', '-', '/', '*' );
this.operator = '+';
this.screen.setText( this.valueX.toString() );
</method>
Firebug gives this report:
Error: Debug.evalCarefully("calculator_display.lzx", 18, (function ()
{return array;}), this) has no properties
Source file: http://localhost:8080/legals/my-apps/calc-final.lzx?
lzt=object&lzt=object&debug=true&lzr=dhtml&_canvas_debug=true
Line: 1888
Have I found the problem? What's wrong with how this.allOperators is
initialized?
Thanks,
jrs