Hi,

There's an interesting behavior (for swf7) with top level view (a direct
child of canvas). I included a testcase for this.

If I change the clickable="true" for the "v1" view, the context menu for
"v2" is not working.

May be this is related to bug :
http://www.openlaszlo.org/jira/browse/LPP-2326

I compiled the testcase to swf8 it's working fine.

thanks.

Sanjaya

<canvas debug="true">

    <view width="100" height="100" bgcolor="yellow" name="v1"
clickable="false">

        <handler name="onclick">
            Debug.write(this.name, " onclick ");
        </handler>

    </view>
    <view width="50" height="50"  bgcolor="red" name="v2">

      <method event="oninit">

        var cm = new LzContextMenu();

        var item1 = cm.makeMenuItem('Item1', new
LzDelegate(this,"handlerightclick"));

        var mitem1 = new LzContextMenuItem("Item1");
        mitem1.setDelegate(new LzDelegate(this,"myitemhandler"));
        cm.addItem(mitem1);

        this.setContextMenu(cm);


        </method>

        <method name="handlerightclick" args="menuobj">
            Debug.write("handlerightclick() | rightclick LzContext menu",
menuobj);
        </method>

        <method name="myitemhandler" args="item">
            Debug.write("myitemhandler() | menu item selected", item);
        </method>

        <handler name="onclick">
            Debug.write(this.name, " onclick ");

        </handler>
    </view>

</canvas>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to