title: How can I generate a SWC from asset files dynamically?
body: <p>Lets say you have 3 swf files in a directory:</p>
  
  <p>/game/assets/</p>
  
  <p>1.swf
  2.swf
  3.swf</p>
  
  <p>What I need to do, is package these up into a SWC File, and then move that SWC file to the libs/ directory. </p>
  
  <p>I plan to use ant, so this step must always occur before the compliation stage.</p>
  
  <p>Today I use a VBS file to generate a XML file. Then I use that XML file to generate a AssetMap which is a series of [Embeds]  (1.swf, 2.swf, 3.swf) which are ByteArrays. </p>
  
  <p>I then pass these byte arrays to a loader.loabytes to generate a MovieClip. </p>
  
  <p>But this "real time bytearray conversion" as far too slow. Id prefer I could have direct access to instances like I do with a SWC.</p>
  
  <p>Can anyone offer me advice?</p>