I removed the menu with a simple:
canvas.dev_menu = new LzContextMenu;
this.setDefaultContextMenu(canvas.def_menu);
You just get settings and about flash in the menu.
Cheers,
Bruce
Stefan wrote:
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>
--No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.16/551 - Release Date:
11/25/2006