Tucker,
Thanks, that fixed it.
I think that message did appear a little further down the error
console, but I didn't notice because it was off the bottom of the
screen.
jrs
On Feb 5, 2007, at 1:39 PM, P T Withington wrote:
`array` is spelled `Array`
What is a mystery is that you should have gotten an error for
`array` not being defined.
On 2007-02-05, at 12:52 EST, John Sundman wrote:
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