20 Replies Latest reply on Feb 5, 2012 8:38 PM by kglad

    Dynamic text field line count external text

    armandix Level 1

      Hello friends,

      I made a scrollbar, but now I have a problem, need to read the number of lines of Dynamic text field and if it is greater than x show the scrollbar and hide if is less.

      Like this:

       

      if(text.instance>7){

      scrollbar._visible = true;

      }

      else{

      scrollbar._visible = false;

      }

       

      My problem is how do I count the total lines of dynamic text field after  load a external text.