title: Assigning nested movieclips to a multi-dimensional array in flash as2
body: <p>I have 5 movieclips called row1, row2, ..., row5.  Inside each row are the movieclips let1, let2, ..., let15.   I want to assign all of the letter clips to a 2 dimensional array.  This is a followup to an earlier question <a href="https://stackoverflow.com/questions/538133/dynamically-accessing-nested-movie-clips-in-flash-actionscript-2">Dynamically accessing nested movie clips in flash actionscript 2</a> . </p>
  
  <p>I am trying this:</p>
  
  <p>var letterClips:Array = [];</p>
  
  <p>for( var i = 1; i &lt;= 5; i++) {</p>
  
  <pre><code>letterClips[i] = new Array(16);
  
  //var row:MovieClip = _root["row" + i];
  //rowClips.push(row);
  
  for ( var j = 1; j &lt;= 15; j++) {
  
      var letter:MovieClip = _root["row" + i]["let" + j];
  
      letterClips[i].push(letter);
  
  }
  </code></pre>
  
  <p>}</p>