风火一回一生不毁 2011-04-13
<canvas width="780" height="700">
<viewwidth="300"height="300"bgcolor="red"name="viewTest">
<methodevent="oninit">
varcontextMenu=newLzContextMenu();
varaddItem=contextMenu.makeMenuItem('添加',newLzDelegate(this,"addEvent"));
addItem.value="add";
contextMenu.addItem(addItem);
vardelItem=contextMenu.makeMenuItem('删除',newLzDelegate(this,"deleteEvent"));
delItem.value="delete";
contextMenu.addItem(delItem);
varmodifyItem=contextMenu.makeMenuItem('修改',newLzDelegate(this,"modifyEvent"));
modifyItem.value="modify";
contextMenu.addItem(modifyItem);
this.setContextMenu(contextMenu);
</method>
<methodname="addEvent"args="selectedItem">
varitem=selectedItem.value;
//。。。。。。。。。。。。。。。。。。
</method>
<methodname="deleteEvent"args="selectedItem">
varitem=selectedItem.value;
//。。。。。。。。。。。。。。。。。。。。
</method>
<methodname="modifyEvent"args="selectedItem">
varitem=selectedItem.value;
//。。。。。。。。。。。。。。。。。。。。。。
</method>
</view>
</canvas>