ActionScript: hide, remove the context menu items, right click in Flash

[:en]If you do a right click above a Flash animation you will open a context menu.

You can remove all context menu items in Flash with this code:

var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
contextMenu = cm;
contextMenu.builtInItems;

[:fr]Un clic droit sur un animation Flash fait apparaître un menu contextuel avec plusieurs actions possibles sur l’animation en cours.

On peut supprimer les éléments du menu contextuel avec ce bout de code :

var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
contextMenu = cm;
contextMenu.builtInItems;

[:]

Author: Benoit Freslon