2 Replies Latest reply on Mar 7, 2007 10:35 AM by Germ77

    Using createTextField in a loop to make a table

    Germ77 Level 1
      Hi, I have been looking all over and through my book trying to find a way to make a table of textfields. I have 3 arrays that are received through a pearl script and need to make a table to display the 3 arrays. The size of the arrays will always vary so the table needs to be able to adjust to the size.

      I was thinking of something along the lines of

      this.createTextField("title_text", this.getNextHighestDepth(), 10, 10, 300, 100);
      title_text.multiline = false;
      title_text.wordWrap = false;
      title_text.text = title;

      I have tried doing it inside of loops using the number of the loop as the title for the textfield when creating it but then I cannot find a way to reference it and assign the .text to it.

      Any help would be great, or if there is a different command to use that would work better than createTextField, I am still pretty new to flash and actionscript.

      Thanks in advance.