I can detect Clipboard Data (when I copy text to the clipboard), and display that text.
Here's how I do it:
var text = air.Clipboard.generalClipboard.getData(air.ClipboardFormats.TEXT_FORMAT);
var text = "nothing in clipboard";
And it absolutely works fine. As soon as I Copy something to the clipboard I get that Text data.
I'd like to get the Text Data of when I highlight Text with my mouse, before deciding to copy it or not.
Is there a way to do that?
Do you mean the text is selected in your Flash/AIR program (which should be relatively simple) or do you mean grabbing text they have selected outside of Flash/AIR (which should be impossible)?