3 Replies Latest reply on Aug 24, 2007 12:22 PM by Greg Dove

    Displaying All Array Elements in a Dynamic Text Field

    padrepio
      I have an array and I'd like to dump it's contents into a dynamic text field using a for loop. Here's my loop:

      var length:int = lotr.length;
      for (var i:int = 0; i < length; ++i) {
      characters.htmlText = lotr ;
      }

      The very last item in the array is the only item that makes it into the text field. I want all of the members of the array displayed. What am I missing?