actionscript q
- Started
- Last post
- 3 Responses
- vespa
anyone know how to set the position of the text input cursor within a text input field?
i'm trying to use the up and down keys to increase or decrease a number entry field by 1, only if i use the up key to increase the number by 1, the cursor also moves back by 1 space. how do I force the cursor back to the end of the line?
- versa0
i think if you build a quick function that invokes the 'onSetFocus' handler for the textfield in question it will by default set the cursor to the start...
not 100% sure tho..worth a try
- vespa0
yea but i want to set it to the end, that's the problem...
- jkosoy0
this may be crude, but what about activating a simple space in the string?
text_field.text = text_field.text + " ";
I don't know if that'll work or not. It's Monday. I'm braindead.