TextField Caret Does Not Display in Actionscript 3
Posted
by Cinegod
on Stack Overflow
See other posts from Stack Overflow
or by Cinegod
Published on 2009-12-13T05:33:58Z
Indexed on
2010/04/30
22:07 UTC
Read the original article
Hit count: 237
Hello all, I am trying to display a text field that has text inside it, and display the flashing Caret at the end of the text. I have tried the following:
Code:
// ti_title is my textField
stage.focus = ti_title;
ti_title.setSelection( ti_title.length, ti_title.length );
I have also tried:
// ti_title is my textField
ti_title.stage.focus = ti_title;
ti_title.setSelection( ti_title.length, ti_title.length );
The field is focused because I can type into it, but I do not see a Caret until I have started typing. This is not very good for usability.
I have even tried removing text then re-adding it and then setting the selection again, but still not working. Any ideas?
all the best nG
© Stack Overflow or respective owner