# Custom textfield cursor/caret

**URL:** <https://forum.kirupa.com/t/custom-textfield-cursor-caret/320156>\
**Category:** flash\
**Created:** [March 15, 2011, 2:50pm UTC](https://forum.kirupa.com/t/custom-textfield-cursor-caret/320156 "2011-03-15T14:50:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beyondlearning](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@beyondlearning](https://forum.kirupa.com/u/beyondlearning)\
**Post date:** [March 15, 2011, 2:50pm UTC](https://forum.kirupa.com/t/custom-textfield-cursor-caret/320156/1 "2011-03-15T14:50:11Z")

</div>

Hi there,

Is there any way to create custom textfield cursor/caret? I currently have a textfield (tfFocus) with a blinking caret that works just fine using the following code:

```auto
 
tfFocus.stage.focus = tfFocus;  
tfFocus.setSelection( tfFocus.length , tfFocus.length);

```

However, I’d like to change the caret to a block instead of a line. Any ideas?!

Much appreciated!
