1 Reply Latest reply on Jun 29, 2007 11:43 AM by MotionMaker

    [AS3] Stuck with variables

      Hello, i am completely stuck with as3.

      Here's is what i did in as 2.0:

      I created different dynamic texts , then i assigned the variable var_name1 for the first text, var_name2 for the second or whateverText_name1 etc...

      Then i created an array:

      myArray [["name1", value1, value2], ["name2", value1, value2]]

      Then i assigned values to the variables like that

      for(j = 0; j < myArray.length; j++){
      set( "var_" + myArray[j][0], myArray[j][1]);
      set( "var_temp" + myArray[j][0], myArray[j][2]);

      Now in as3 set is no more usable and and according to the manual there is no equivalent.

      I absolutely don't know how to do that again in as3. I past last day trying to find an answer but i did not and don't know what to do now.

      If someone understand, please help me :)