Flex Issue: Using “Copy” as label for ContextMenu item

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

6 Responses to Flex Issue: Using “Copy” as label for ContextMenu item

  1. Denis says:

    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

    • Hillel says:

      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).

  2. JabbyPanda says:

    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

  3. Dan T says:

    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.

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 57 other followers