View Full Version : [AS3] TextArea Component

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.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?

08-27-2010, 01:14 PM
Try adding newtext.setFocus()