1 Reply Latest reply on Mar 25, 2007 1:50 PM by kglad

    For Loop Query - Assigning Values to Variables

    bobby2156
      I have the following code below in my flash file..

      q2a = random(10)+1;
      q2b = random(10)+1;
      ans2 = q2a+q2b;

      I have 18 thing similar to this in my file, where it basically increments... q3a etc etc. Is there a simple way to create a for loop which will iterate through each of them? I couldn't get the syntax right when i tried myself.