How can the cursor position be set within the input field?

68 views
Skip to first unread message

abhishek

unread,
May 29, 2009, 2:58:12 AM5/29/09
to ActionScript 3 Core Library
hello frnds,
plz tell me
How can we set the cursor position in the input field?
i have written Selection.setFocus(input1); in code, so after click on
input box it is selected which i want but all default text is delted
automatically, i want to keep deafult text and set cursor nect to
that.
:)

alec

unread,
Jun 1, 2009, 6:23:33 AM6/1/09
to ActionScript 3 Core Library
This isn't really the place for questions like this, since they don't
pertain to the corelib directly. You can lookup methods from the
language reference at Adobe: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/

Where TF is a TextField object TF.setSelection(3,3); will position the
caret after the third character. AFAIK, Selection... is an AS2
command, if it still work's I'd be astonished, and if it doesn't then
probably it's because it shouldn't...

ismail şimşek

unread,
Jun 10, 2009, 9:04:07 PM6/10/09
to ActionScript 3 Core Library
stage.focus = TextFieldName_txt;

this is not working on debug mode.
Reply all
Reply to author
Forward
0 new messages