0 Replies Latest reply on Mar 30, 2007 2:15 AM by gri-gri

    named anchor like link in textfield

    gri-gri
      I'm trying to get links in a textfield that link to paragraphs in that textfield. The same as you would do in html using named anchors.
      For now I've an asfunction href in the text that searches the textfields text for a certain substring using indexOf. This gives me a position index of that substring in the text.
      Then I use a search for "\r" to get the number of lines before the position index is reached. I then use this number of lines value as a scroll value for the textfield. This works but since the textfield is textwrapped I never get the correct amount of lines, because the textfield actually has more lines than it has "\r" linebreaks.

      Does anybody have an idea how to solve this issue?