here's another way to do it - simple, to the point

<attribute name="room1" value="null"/>
<method name="createRoom" args="roomName">
             var url = URL.text;
             room1= new lz.button(canvas, {
                             text : roomName,
                             xoffset : -20,
                         });
            var del = lz.Delegate(this, "roomclick");
            del.register(room1, "onclick");
</method>

<method name="roomclick">
        Debug.info("room url : %w")
</method>

hope that helps, or at least, gets you beyond that point to other things :)

On Tue, 23 Feb 2010 14:59:23 -0700, cem sonmez <[email protected]> wrote:

hi all. I am trying to implement the onclick handler of the button that i am
creating with lz. namespace.
When i use the way below, i see the debug message while the button is being created(isnT it weird ?) and when i click the button, getting this error on
the debugger :

ERROR @views/LaszloView.lzs≈2684: ReferenceError: Error #1069: could not
find ready property on LzInfo and no default value...

<attribute name="room1" value="null"/>
<method name="createRoom" args="roomName">
            var url = URL.text;
            room1= new lz.button(canvas, {
                            text : roomName,
                            xoffset : -20,
                            onclick : Debug.info("room url : %w")
                        });
 </method>

And another important question, am i trying the right way to implement the
onclick handler in this way :)
Kind regards



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Reply via email to