title: As3 performance for Sprite beginFillBitmap vs addChild(bitmap)
body: <p>Just a quick question: </p>
  
  <p>which of the following method of create a sprite have quick rendering and less memory usage? </p>
  
  <p>Add bitmap to the sprite</p>
  
  <pre><code>var sprite:Sprite = new Sprite();
  var bitmap:Bitmap = new Bitmap();
  sprite.addChild(bitmap);
  </code></pre>
  
  <p>vs</p>
  
  <p>Draw rectangle and fill with bitmapData</p>
  
  <pre><code>var bitmapData:Bitmapdata = new BitmapData(100, 100);
  var sprite:Sprite = new Sprite();
  sprite.graphic.drawRec(0, 0, 100, 100);
  sprite.graphic.beginFillBitmap(bitmapData:Bitmapdata);
  sprite.graphic.endFill();
  </code></pre>
  
  <p>Thanks for any idea.</p>