title: Converting a flex component w/images to bitmap
body: <p>I am trying to take images I am placing in a flex canvas component to a bitmap. I was able to get to the point where I'm not getting an error but then no image shows up and the image I save out as a jpg is blank. I imagine I'm not setting the bitmap data correctly but can't figure out what I am doing wrong.</p>
  
  <p>Here is the code where I am converting it to a bitmap:</p>
  
  <pre><code>var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(_renderPop);
     var imageByteArray:ByteArray = imageSnap.data as ByteArray;
     var bLoader:Loader = new Loader();
     bLoader.loadBytes(imageByteArray);
  
     var bmd:BitmapData = new BitmapData(500,500);
     bmd.draw(bLoader);
  
     var imgTest:Image = new Image();
     imgTest.source = bmd;
     _renderPop.renderCanvas.addChild(imgTest);
  
  
  
     var fileRef:FileReference = new FileReference();
     fileRef.save(bLoader, 'testImage.jpg');
  </code></pre>
  
  <p>_renderPop.renderCanvas is where I am placing the images.  Anybody see anything wrong?</p>