Hi, I’m trying to set the caret to the end of the
textfield. I have a keyUp event handler that adds the dot “.” automatically
for the text entered. The problem is that when the dot is added by actionscript
the caret stays behind the added dot while typing, so the dot gets misplaced
and the typing comes out wrong. How can I position the caret AFTER the
autoinserted dot? I’ve tried to fool around with the Selection class
functions but none of it seems to help…. Here is an example of the handler I’d like to use: function onKeyUp( event ) { if( MyTextField.text.length == 2 ) { MyTextField.text = MyTextField.text
+ "."; // HOW TO POSITION THE CARET HERE SO
THAT IT COMES OUT LIKE THIS ON TEXTFIELD: “myenteredtext.CARET_BLINKING_HERE??? } } -Mika -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- [flexcoders] Caret positioning problem Mika Kiljunen
- RE: [flexcoders] Caret positioning problem Allen Manning
- RE: [flexcoders] Caret positioning problem Philippe Maegerman
- RE: [flexcoders] Caret positioning problem Mika Kiljunen
- RE: [flexcoders] Caret positioning problem Philippe Maegerman
- RE: [flexcoders] Caret positioning problem Mika Kiljunen
- RE: [flexcoders] Caret positioning problem Philippe Maegerman
- Re: [flexcoders] Caret positioning problem Niklas Richardson
- Re: [flexcoders] Caret positioning problem Niklas Richardson
- RE: [flexcoders] Caret positioning pro... Mika Kiljunen
- RE: [flexcoders] Caret positioning problem Mika Kiljunen