Am 27.11.2006 um 01:27 schrieb Stefan:
- Finally, I'd be too happy to remove certain parts of the 'right-
click' menue of compiled SWF files.
I wonder, if I could remove the 'View Source' item, since I use
the system in a production environment.
Moverover, I'd like to remove the 'About OpenLaszlo' item -
although this isn't essential.
Found this snippet, which works nicely [although the original poster
wrote, that the scnippet doesn't work for him]:
<!-- Remove "View Source" From Right-Click -->
<method event="oninit">
this.removeViewSourceMenu();
</method>
<method name="removeViewSourceMenu">
var cm1 = new ContextMenu();
cm1.hideBuiltInItems();
cm1.addItem(this.__LZdefaultMenuItem);
this.setContextMenu(cm1);
</method>