Sometimes we need to replace the Flex default right-click menu. The code below can hide the default menu but cannot replace it (using the function "hideBuiltInItems").
```javascript
var contextMenu: ContextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
```
The code below will show you how to implement the replacement of the default menu.