13 Replies Latest reply on May 7, 2010 1:25 PM by kglad

    What's wrong in this for loop code? Please help


      I have 9 dynamic textboxes txt1,  txt2, txt3 .. txt9, and I want to trace only the number of those dynamic textboxes which contain a text


      var i:Number;
      for (i=0;i<10;i++){
      if  (this["txt"+i].length > 0)


      trace ( i ) ;


      this code traces numbers from 1-9 whether the textboxes contained a text or not, how can I make it trace only filled ones? Thanks