title: AS2 Dynamic MovieClip Selection
body: <p>If I have movieclips called "test1", "test2" and "test3" in the _root, I can use:</p>
  
  <pre><code>for(i = 1; i &lt;= 3; i++){
     _root['test'+i]._x = 100;
  }
  </code></pre>
  
  <p>How do i use the "_root['mc']" selection method if all my test mc's are in another mc called layout.</p>
  
  <p>I have tried this but got a syntax error.</p>
  
  <pre><code>for(i = 1; i &lt;= 3; i++){
     layout.['test'+i]._x = 100;
  }    
  </code></pre>