2 Replies Latest reply on Nov 20, 2006 10:13 AM by MichRX7

    Setting dynamic variable properties

    MichRX7
      I asked this down in the Actionscript 3.0 forum, but maybe it was the wrong place... I really need some help on this to finish off an application we are creating.

      Thanks!

      If I create the textareas dynamically how do I loop through them later on to set their properties?

      so basically I have some textareas with ids of
      myText_0
      myText_1
      myText_2
      myText_3
      (etc)

      and I have a loop of
      for (var x:int=0; x<4; x++)
      {
      // insert AS3 code here
      }

      inside the loop I need to be able to say something like:
      myText_x.height = 50;
      myText_x.text = "Hello " + x.toString();