title: ActionScript - Screen Fade Performance Optimization?
body: <p>I'm building an AIR application that fades in on launch.  Often the window's bounds at launch is very large or in full screen.</p>
  
  <p>The fade is undesirably choppy, but I've converted the vector shape into a bitmap prior to tweening the alpha property.</p>
  
  <p>How can I optimize this further to achieve a smooth fade in?</p>
  
  <pre><code>faderFill = new Shape();
  faderFill.graphics.beginFill(0x000000, 1.0);
  faderFill.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
  faderFill.graphics.endFill();
  
  faderBitmapData = new BitmapData(faderFill.width, faderFill.height);
  faderBitmapData.draw(faderFill);
  
  faderBitmap = new Bitmap(faderBitmapData, PixelSnapping.NEVER, false);
  faderBitmap.width = stage.stageWidth;
  faderBitmap.height = stage.stageHeight;
  
  addChild(faderBitmap);
  
  Tweener.addTween(faderBitmap, {time: 1.0, transition: Equations.easeNone, alpha: 0.0});
  </code></pre>