title: How to preload a file in Flex before the application initializes
body: <p><strong>Problem:</strong> An XML configuration file needs to be loaded at <strong>runtime</strong> and be ready when the application's createChildren() gets called. At the latest, because configuration values are needed to properly initialize child components. Preferably, I would like the configuration loading be complete before the application even gets created. In short, I want to do this:</p>
  
  <ol>
  <li>load configuration, then</li>
  <li>initialize the application using the loaded configuration.</li>
  </ol>
  
  <p>I created a custom preloader to help solve this. But as it turns out, the application's createChildren() method already gets called during preloading, when the configuration is not yet guaranteed to be loaded. That is, before the custom preloader dispatches the COMPLETE event.</p>
  
  <p>Thanks for any help in advance.</p>