Setting cursor position at the end of a TextInput control


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import mx.events.FlexEvent;
  2.  
  3. // Flex 4
  4. private function creationComplete(event:FlexEvent):void
  5. {
  6. textInput.selectRange(textInput.text.length, textInput.text.length);
  7. textInput.setFocus();
  8. }

URL: http://code.arthipesa.com/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.