How do I get Set Selection to work in a text field. I have a text field inside a movieclip and a button with a click listener on it. When it clicks I want it to select all the text inside. This is what I have so far, I hope you can help.
send.addEventListener(MouseEvent.CLICK, function() {
panel.tweet.selectable = true;
stage.focus = panel.tweet;
panel.tweet.setSelection(0, panel.tweet.text.length);
});