title: How can I add instance names to movieclips using AS3
body: <p>I have a FLA document with a movie clip called "mc_walls".  This movie clip is in the stage over 50 times in the movie and I haven't assigned an instance name each movie clip.</p>
  
  <p>I was wondering if there was a way to add the instance names using some actionscript?</p>
  
  <p>I want all the "mc_walls" to have the name "wall".</p>
  
  <p>I tried this code:</p>
  
  <pre><code>mc_wall.name = "wall";
  </code></pre>
  
  <p><strong>But it returns with this error:</strong>
  <code>1119: Access of possibly undefined property name through a reference with static type Class.</code></p>
  
  <p>Help will be great :)</p>
  
  <p>Many Thanks,</p>
  
  <p>Peter</p>