title: Set Selection in AS3
body: <p>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.</p>
  
  <pre><code>send.addEventListener(MouseEvent.CLICK, function() {
      panel.tweet.selectable = true;
      stage.focus = panel.tweet;
      panel.tweet.setSelection(0, panel.tweet.text.length);
  });
  </code></pre>