title: Flash AS3 for loop query
body: <p>I was hoping for a way that I could save on code by creating a loop for a few lines of code. Let me explain a little, with-out loop:</p>
  
  <pre><code>icon1.button.iconLoad.load(new URLRequest("icons/icon1.jpg"));
  icon2.button.iconLoad.load(new URLRequest("icons/icon2.jpg"));
  icon3.button.iconLoad.load(new URLRequest("icons/icon3.jpg"));
  icon4.button.iconLoad.load(new URLRequest("icons/icon4.jpg"));
  </code></pre>
  
  <p>etc... But with a loop could I have something like:</p>
  
  <pre><code>for (var i:uint = 0; i &lt; 4; i++) {  
      icon+i+.button.iconLoad.load(new URLRequest("icons/icon"+i+"jpg"));
  }
  </code></pre>
  
  <p>Any ideas welcome...</p>