Hi All,
I have a Label in AS3 that I want to be selectable (.selectable = true) AND I want the clipboardMenu to show up on right-click ALONG with custom menu items.
If I do THIS:
var label:Label = new Label();
label.text = "test";
label.selectable = false;
var contextMenu = new ContextMenu();
contextMenu.clipboardMenu = true;
contextMenu.clipboardItems.copy = true;
contextMenu.clipboardItems.selectAll = true;
contextMenu.addItem(new ContextMenuItem("Test Item"));
contextMenu.addItem(new ContextMenuItem("Test Item 2"));
label.contextMenu = contextMenu;
thing.addChild(label);
This ALMOST works - in that when I right-click on the label I get a menu that has the clipboard items AND my custom items.... HOWEVER, the text in the label IS NOT SELECTABLE due to the .selectable = false. This of makes the clipboard menu items useless.
IF I change the line:
label.selectable = false;
to:
label.selectable = true;
The label IS selectable - however ONLY the clipboard menu items are present.
How can I both make the label selectable AND have a menu with my custom items + standard clipboard items?
Thanks for your help.
BTW - this is with an AIR application using the 3.2 SDK.