Setting cursor position at the end of a TextInput control
Below code shows you how to set cursor position at the end of a TextInput control in Flex 4.
import mx.events.FlexEvent; // Flex 4 private function creationComplete(event:FlexEvent):void { textInput.selectRange(textInput.text.length, textInput.text.length); textInput.setFocus(); }


Leave a comment