1 Reply Latest reply on Feb 11, 2010 2:33 PM by Jason Szeto

    s:RichEditableText: Cursor(caret) coordinates

    flcs4

      Is it possible to get the coordinates of the text caret ? Trying to add auto-complete feature.

        • 1. Re: s:RichEditableText: Cursor(caret) coordinates
          Jason Szeto Level 3

          I don't think there is an API to get the x,y coordinate of the caret. However, you can get the position and calculate the approximate coordinates.


          selectionActivePosition and selectionAnchorPosition should do the trick.You cn also try digging into the textFlow property and access the underlying TLF classes.

           

          Jason

          1 person found this helpful