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
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
: [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
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
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 wont
help
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
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
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
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
@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
[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
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
12 matches
Mail list logo