There should be APIs to set the selection range. They have different names for Spark vs MX.
Thanks for you reply and help Alex,
I try this:
It does the selection for a second and point the cursor to the zero location after.
Something else is missing?
Try using callLater to delay setting the selection.
You want to do something like
protected function textinput1_focusInHandler(event:FocusEvent):void
<s:TextInput id="textinput1" text="focusIn test" focusIn="textinput1_focusInHandler(event)"/>
because the RichEditableText focusInHandler sets the selection based on a number of factors. If you always want everything selected you need to do it after this.