title: AS3 : Accessing Array Name Through For Loop with counters?
body: <p>I do not know what you would call or define this type of issue with AS3.
  I have 2 For Loops that look like this:</p>
  
  <pre><code>// Here I would have 5 arrays naming from NDW1 to NDW5
  var NDW1:Array = new Array();
  
  for(var a:int = 1; a &lt; 6; a++){
      for(var b:int = 0; b &lt; 14; b++){
         // Here I want to call a function and assign it to a textfield
         this["DifferenceW"+a+"_"+b].text = CalculateDifference(Number("NDW"+a+"["+b+"]"), Number("NDW"+a+"["+b+"]")).toString();
      }
  }
  </code></pre>
  
  <p>My problem when I am trying to access the actual array of <strong>NDW</strong> while using counters to increment that actual array and array element. </p>
  
  <p>But when I type <strong>"NDW"+a+"["+b+"]"</strong> it will only return a string value. How do I actually get it to return the array with that current element? 
  So for example if <code>NDW1[0] = 2</code> instead of just a string of <code>NDW1[0]</code>?</p>