Flash focus textfield
Flash focus textfield
- Started
- Last post
- 3 Responses
- fues
I would like to set focus on an input textfield that contains text, so far so good. Flash however puts the textcursor at the beginning of the textfield and not at the end (after the text in the field)
Ex: 'dummy text in textfield' [textcursor here]
- era4O40
AS2 or AS3?
- era4O40
If AS3, if your textfield instanceName is "t", try this:
var newIndex:int = t.caretIndex + t.text.length;
t.setSelection(newIndex, newIndex);
- fues0
thanks! works like a charm