[flexcoders] Caret positioning problem

2005-08-10 Thread Mika Kiljunen
Hi, Im 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

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Allen Manning
Subject: [flexcoders] Caret positioning problem Hi, Im 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

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Philippe Maegerman
: [flexcoders] Caret positioning problem Mika, Have you looked at: Selection.setSelection(stringLength,stringLength) HTH, Allen www.prismix.com/ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika KiljunenSent: 10 August 2005 13:25To: flexcoders

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Mika Kiljunen
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: 10. elokuuta 2005 15:35 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Caret positioning problem var fm = getFocusManager(); fm.setFocus(MyTextField); Selection.setSelection(0

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Philippe Maegerman
MyTextField.text.length+1 maybe ;) Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mika KiljunenSent: mercredi 10 août 2005 14:47To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Caret positioning problem Thanks, but it won’t help

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Mika Kiljunen
You wishbut  no, does not work (already tried it) L -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: 10. elokuuta 2005 16:16 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Caret positioning problem

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Philippe Maegerman
Maegerman Webdeveloper +32 2 400 40 39 +32 472 35 28 10 Avoir des rêves, c'est continuer d'exister... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mika KiljunenSent: mercredi 10 août 2005 15:27To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Caret positionin

Re: [flexcoders] Caret positioning problem

2005-08-10 Thread Niklas Richardson
: RE: [flexcoders] Caret positioning problem You wish…but no, does not work (already tried it) L -Mika From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe Maegerman Sent: 10. elokuuta 2005 16:16

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Mika Kiljunen
for Philippe folks, cause hes the man. J -Mika From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Philippe Maegerman Sent: 10. elokuuta 2005 16:42 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Caret positioning problem Don't ask me how I found

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Philippe Maegerman
@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Niklas Richardson Sent: mercredi 10 août 2005 15:49 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Caret positioning problem Yeah, I just found that if you split the two commands into separate functions, and associate them with the click

Re: [flexcoders] Caret positioning problem

2005-08-10 Thread Niklas Richardson
[mailto:[EMAIL PROTECTED] On Behalf Of Mika Kiljunen Sent: mercredi 10 août 2005 15:27 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Caret positioning problem You wish…but no, does not work (already tried it) L -Mika

RE: [flexcoders] Caret positioning problem

2005-08-10 Thread Mika Kiljunen
Subject: Re: [flexcoders] Caret positioning problem Mika, I've just seen some wacky behaviour with using that function on the keyUp. If you type too quickly it skips adding the period. Also, if you try to delete (backspace) after typing, you get into a loop or it recreating the period. However