orangatang91
08-21-2010, 11:22 PM
Hi everyone,
I have a textarea already on the stage. It's instance is 'newtext'.
This code is used to put focus and highlight the text in the textarea component:
newtext.text = "PASTE CODE HERE";
newtext.drawFocus(true);
newtext.setSelection(0, newtext.length);
This all works, but when I try to paste, using ctrl + v, it is not pasting as if the text component is not selected. Is there a way to make sure this textarea is selected so I can quickly just ctrl + v, to change its text?
I have a textarea already on the stage. It's instance is 'newtext'.
This code is used to put focus and highlight the text in the textarea component:
newtext.text = "PASTE CODE HERE";
newtext.drawFocus(true);
newtext.setSelection(0, newtext.length);
This all works, but when I try to paste, using ctrl + v, it is not pasting as if the text component is not selected. Is there a way to make sure this textarea is selected so I can quickly just ctrl + v, to change its text?