3 Replies Latest reply on Sep 7, 2007 7:12 AM by kglad

    problem constructinmg variable and instance names

    tikitin
      I have several dynamic text fields. They are named : "field_0", "field_1", "field_2" etc.. Also I have several variables called
      "var_0" , "var_1", "var_2" etc.

      I tried something like this:
      for (i;i<3;i++){
      _root.field_+i+.text=var_+i;
      }

      + sign does not work. How do I construct the variable names and instance names using "i" within the for -loop?