xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark" width="500">
import mx.core.UIComponent;
private function tiHandler(e:Event):void {
TextInput(e.currentTarget).selectRange(0,3);
}
text="When you click on this control, the first three characters are selected."
width="400" />