0 Replies Latest reply on May 7, 2015 9:50 AM by thinkplay

    caretIndex in textfield returning incorrect number on iOS

    thinkplay

      Hi All,

       

      I'm having weird returns when i call caretIndex on a textfield on iOS. It works fine on both Mac and PC platforms.

      Instead of returning the right number it initially returns 235, when i type a letter it goes to 236, then when i delete back to 234, delete again 233 etc

      If you then move the cursor down say 20 indexes further when you type it goes from 233 to 234 etc

       

      Here is the code i'm using

       

      var currentCarret:Number = objectTextbox.TEXT.caretIndex;

       

       

       

      I'm using Flash Pro CC latest with Air 16.0, tested on PC, Mac not working on iPad mini

       

      Cheers in advance,

       

      Aled Lloyd, thinkplay.tv