title: MovieClip disappear after changing width and height in AS3
body: <p>I am trying to load an image from an url in as3, as follows:</p>
  
  <pre><code>var myImageLoader:Loader = new Loader();
  private var mcImage: MovieClip = new MovieClip();
  var myImageLocation:URLRequest = new URLRequest("http://example.com/xyz.jpg");
  myImageLoader.load(myImageLocation);
  mcImage.addChild(myImageLoader);
  mcImage.x = 100;
  mcImage.y = 100;
  //mcImage.width = 50;
  //mcImage.height = 50;
  addChild(mcImage);
  </code></pre>
  
  <p>The code above works fine, but since my desire image has a different size comparing to the original image, changing its size is necessary here. So after using the lines, which are commented in the code above, the mcImage disappear.</p>
  
  <p>I tried to use <strong>mcImage.scaleX =myImageLoader.width/50</strong> , but since myImageLoader is not loaded at the beginning, we cannot get the width of myImageLoader which is null.</p>