# How can i get the current cursor position in TextField?

**URL:** <https://forum.kirupa.com/t/how-can-i-get-the-current-cursor-position-in-textfield/261821>\
**Category:** flash\
**Created:** [May 31, 2008, 9:33am UTC](https://forum.kirupa.com/t/how-can-i-get-the-current-cursor-position-in-textfield/261821 "2008-05-31T09:33:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitmagician](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@amitmagician](https://forum.kirupa.com/u/amitmagician)\
**Post date:** [May 31, 2008, 9:33am UTC](https://forum.kirupa.com/t/how-can-i-get-the-current-cursor-position-in-textfield/261821/1 "2008-05-31T09:33:02Z")

</div>

Hi,

I want to get the current cursor position in text field while typing  
So please help me.

Amit

---

<div class="post-metadata">

**Author:** ![creatify](https://avatars.discourse-cdn.com/v4/letter/c/d07c76/32.png) [@creatify](https://forum.kirupa.com/u/creatify)\
**Post date:** [May 31, 2008, 9:45pm UTC](https://forum.kirupa.com/t/how-can-i-get-the-current-cursor-position-in-textfield/261821/2 "2008-05-31T21:45:54Z")

</div>

look into the Selection class in flash - might search the forum here for that - “Selection”. It has a getCaratIndex() method. AS3 has more robust ways to deal with textFields on selection - but most things can be done in AS2, it just take a bit more work.

[see this link: Adobe LiveDocs Selection](http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002659.html)

Hope this helps.
