I’m trying to use System.setClipboard.
This copies text to the clipboard.
My problem is that it doesn’t copy the newline character.
I’ve tried using \r and
but it still doesn’t work.
Here is some sample code I’m using:
myText.text = "Kirupa Website" + newline + "Flash Samples" + newline "Flash Forums";
System.setClipboard(myText.text);
Can someone tell me what I’m doing wrong?
Or is this a bug in Flash?
I’ve also tried having 2 newline characters to seperate the text… but the same results happens.
There is no paste function in Flash apparently for security reasons…
So to test… you have to use something like Notepad or any other text editor.
As an aside: does anyone know if this function works for Macs?
Thanks.
OM