title: Actionscript embed an array
body: <p>I want to embed some images at compilation time so I end up with just a single swf.
  They need to be inside of an array as I need to modify them programatically and they can be 100s of images. Cant use flex as I want to keep the whole function in actionscript (aka make files smaller)</p>
  
  <p>I found how to do it in flex:</p>
  
  <pre><code>...
  &lt;mx:Array id="test"&gt;
     &lt;mx:Image id="image0" source="@Embed(source='../../../lib/Images033,jpg')" /&gt;
     &lt;mx:Image id="image1" source="@Embed(source='../../../lib/Images034,jpg')" /&gt; 
     &lt;mx:Image id="image2" source="@Embed(source='../../../lib/Images035,jpg')" /&gt;
     &lt;mx:Image id="image3" source="@Embed(source='../../../lib/Images036,jpg')" /&gt;
  &lt;/mx:Array&gt;
  ...
  addChild(test[1] as something);
  ...
  </code></pre>
  
  <p><strong>So does anyone know how to do the above but just in Actionscript?</strong></p>
  
  <p>Many thanks.</p>