title: AS3 reference movieclip by .name property
body: <p>Yay, another simple noobie as3 question.</p>
  
  <p>How can I reference a movieclip by its ".name" ?</p>
  
  <p>I tried searching for a solution, but I couldn't find anything. Basically I have a set of movieclips added to the stage using a loop, so the way I found to diferentiate them was by giving them a .name of "something" + the Loop's "i". So now they are named something like "something1", "something2", "something3", and so on.</p>
  
  <p>Now, I need to send some to a specific frame. Usually I would do something like:</p>
  
  <pre><code>something1.gotoAndStop(2);
  </code></pre>
  
  <p>But "something1" isnt the instance name, just the ".name". I cant find a way to reference it.</p>