Im working on a flash project and was wondering if its possible to change the standard context menu to include the "copy" function of the edit context menu. Basically, I would like my static text to be able to be copied with the right click menu choice "copy" that would come up for editable text. Is this possible?
Thanks,
Yvette
Last edited by yvillicana; 03-05-2006 at 03:25 AM.
Built into Flash where? It's my understanding that there are two menus-A standard context menu with options such as Zoom, Quality, Play, etc.
And an edit context menu which shows up for dynamic or input text with options such as Copy, Paste, etc. What I need is to add the copy option to the standard menu so that static text can be copied with a right click.
If I'm missing something please help.
However, it doesnt quite work-Menu displays the correct options but what it copies to the clipboard is _root.myInstanceBox not the contents of the box.
I found that if I put the actual text I want copied in quotes inside the copy function line:
System.setClipboard("text I want copied");
It will work.
However, I need it to work for a few instances which appear on the stage simultaneously. Im thinking I can create a string variable to use which changes on rollover. Is there an easier way?
I found another work around.
If I put this in the function
System.setClipboard(_root.myInstanceBox.text);
and define what _root.myInstanceBox.text equals it ll work.
Thanks a lot. It works fine if I make a little flash movie to test it, but when I go to test it in my project it doesnt. I have no idea why as I removed nearly all my project's code and layers to test it and it still doesnt work. Is there anything that might prevent it from working that you are aware of. The project Im working on doesnt reference the context menu at all. I'm perplexed.