title: SWF tag and stage size in preloader code
body: <p>I'm trying to get SWFs frame size from preloader code. Please take a look at the example:</p>
  
  <pre><code>[SWF(width='640',height='480',backgroundColor='0xFF00FF',frameRate='60')]
  [Frame(factoryClass="MyPreloader")]
  public class Main extends Sprite
  {
      //My main class, which handles the "Application logic"
  }
  
  public class MyPreloader extends MovieClip 
  {
      //My preloader code - how to get SWF width from here?
  }
  </code></pre>
  
  <p>When I compile and embed this into HTML page, I get SWF with proper size - 640x480 with pink color. So "[SWF..]" was interpreted correctly. So is "[Frame..]", because preloader code is running.</p>
  
  <p>I can't get SWF size from preloader code (either from the constructor or in Event.ADDED_TO_STAGE event callback method). So far I've tried:</p>
  
  <ul>
  <li>this.stage.width (returned 0)</li>
  <li>this.stage.loaderInfo.width (got error #2099)</li>
  <li>this.width (returned 0)</li>
  </ul>
  
  <p>Is there any other way getting SWF size?</p>