# Controlling the blinker?

**URL:** https://forum.kirupa.com/t/controlling-the-blinker/186275
**Category:** flash
**Created:** [April 20, 2006, 7:35am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275 "2006-04-20T07:35:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BuG56](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@BuG56](https://forum.kirupa.com/u/BuG56)
#### Post date: [April 20, 2006, 7:35am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275/1 "2006-04-20T07:35:33Z")

</div>

[FONT=Arial]This is a simple question…

Is it possible to reposition the blinker in a text box?

I have a text box and the user can press a key to add a specific string and I’ve already done that. The problem is the blinker ends up between whatever the user typed and the new string, so they have to move the blinker to the end before resuming typing which is, needless to say, very annoying.

I was wondering if there was any sort of actionscript that can check and/or modify the position of the blinker.

Something like:

```auto

on (keyPress "*") {
  //Move blinker to the end of the textbox here
}

```

:thumb: Thanks in advance.

[/FONT]

---

<div class="post-metadata">

### Author: ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)
#### Post date: [April 20, 2006, 9:10am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275/2 "2006-04-20T09:10:11Z")

</div>

its called the caret and I dont think its possible with flash, but I havent looked/tried

---

<div class="post-metadata">

### Author: ![Greggeh](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Greggeh](https://forum.kirupa.com/u/Greggeh)
#### Post date: [April 20, 2006, 9:23am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275/3 "2006-04-20T09:23:58Z")

</div>

```auto
myText.onChanged = function() {
    myBlinker._x = myText._x+myText.textWidth;
};

```

---

<div class="post-metadata">

### Author: ![nathan99](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nathan99](https://forum.kirupa.com/u/nathan99)
#### Post date: [April 20, 2006, 9:28am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275/4 "2006-04-20T09:28:39Z")

</div>

:look: he’s talking about the caret…

---

<div class="post-metadata">

### Author: ![28bit](https://avatars.discourse-cdn.com/v4/letter/2/46a35a/32.png) [@28bit](https://forum.kirupa.com/u/28bit)
#### Post date: [April 20, 2006, 9:59am UTC](https://forum.kirupa.com/t/controlling-the-blinker/186275/5 "2006-04-20T09:59:54Z")

</div>

I believe only a getter is available for the caret position.
