It looks like Flex won’t allow you to use “Copy” as the label of a ContextMenu item. If you try to do so, no error is generated but the menu item isn’t added to the menu. I spent way too long trying to figure out why my code wasn’t working, hopefully this saves you the trouble.
Update: As per the comment below by JabbyPanda, here’s the full list of restricted words.
Best,
Hillel
Seems to me you have different problem. I have 2 menu items with label “Copy” and it is working fine.
http://ewa.sg/v2/IdubeeClient.html
Denis,
First off, very cool app!
It looks like you’re using “Copy” in a regular Menu (under “Edit”). It seems to only be an issue when trying to use it in a context menu (ie, the menu which appears when you right-click).
You’ve hit the issue with context menu that is dependant on underlying Flash Player, it is not Flex SDK dependant.
If you feel that this issue is important to you, you can submit a vote for this Minor Enhancement issue
http://bugs.adobe.com/jira/browse/SDK-12899
The full list of restricted words for ContextMenu menu item captions can be viewed here:
http://livedocs.adobe.com/flex/2/langref/flash/ui/ContextMenuItem.html
JabbyPanda,
Thanks very much, that definitely helps to clear things up for me.
Much appreciated,
Hillel
Actually, their list is not quite accurate. I have a context menu item called “Copy Rows” and it doesn’t show up. They claim that as long as I don’t use the exact reserved word, it will work. I can use “copy” with a lowercase c but that is annoying and looks unprofessional. I can’t use anything that starts with the letters “Copy” with an uppercase C.
Dan,
Thanks for pointing that out, it’s good to know.
Best,
Hillel