2 Replies Latest reply on Sep 22, 2009 4:43 PM by myenters69

    question about variabel dynamic naming

    myenters69

      how we can write a text with action script 2.0, where the variabel name of the text field is a variabel.

       

      if i write this:

       

      var x:Number = 1;

      this.createTextField("my_txt", 1, 100, 100, 300, 100);

      my_txt.variabel = "myTxt"+x;

       

      i couldn't do this:

      myTxt+x = "text that i wanna write";

      or

      "myTxt"+x = "text that i wanna write";

       

      is there another way to called my text variable other than this:

       

      myTxt1 = "text that i wanna write";

      or

      my_txt.text = "text that i wanna write";