title: Declaring variable in loop or before loop in AS3?
body: <p>Should I declare the _mcContainer var before the loop or no? (performance increase?)</p>
  
  <pre><code>for(var i:uint = _startIndex; i &lt;= _endIndex; ++i){    
      var _mcContainer:MovieClip = _mcParent["i_" + _position];
  }
  </code></pre>
  
  <p>or</p>
  
  <pre><code>var _mcContainer:MovieClip;
  for(var i:uint = _startIndex; i &lt;= _endIndex; ++i){
      _mcContainer = _mcParent["i_" + _position];
  }
  </code></pre>
  
  <p>?</p>