Hi There, 

I downloaded LZ 4.1.1. and found that this release does not allow me to create 
objects dynamically (i.e., using 'new'). Below is an example:

<canvas debug="true">
        <debug y="600"/>

        <class name="myclass"/>

        <button x="100" y="100" text="Create">
                <handler name="onclick">
                        var vv = new myclass(canvas, {width:200, height:300, 
bgcolor:0x999999}, []);
                </handler>
        </button>

        <myclass x="300" y="100" width="100" height="100" bgcolor="red"/>
        <view x="500" y="100" width="100" height="100" bgcolor="blue"/>
</canvas>

When running this program, and press the button "Create", I got the following 
error:

ERROR @tmp.lzx#8: call to undefined function 'myclass' 

In addition, The firebug reports the following errors:
[Exception...
"Component is not available" nsresult: "0x80040111
(NS_ERROR_NOT_AVAILABLE)" location: "JS frame ::
file:///C:/PROGRA~1/Mozilla%20Firefox/components/nsSessionStore.js ::
sss_saveState :: line 1753" data: no]
    oState.session = { state: ((this._loadState == STATE_RUNNING) ? 
STATE_RUNNIN...

Your help is greatly appreciated!

Chen Ding

_________________________________________________________________
Use video conversation to talk face-to-face with Windows Live Messenger.
http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_072008

Reply via email to