title: Adding a BitmapImage to a Canvas
body: <p>I am trying to load a BitmapImage from an embedded source image and add this to a UIComponent.  I am attaching the code that I have below.  I have not been able to get this to work.  Any help would be greatly appreciated.</p>
  
  <pre><code>var bitmap:BitmapImage = new BitmapImage();
  bitmap.source ="@Embed('sample.jpg')";
  var graphic:Graphic = new Graphic();
  graphic.addElement(bitmap);
  thumbHolder.addChild(graphic);
  </code></pre>
  
  <p>When I run this I dont get an error, but no image appears in thumbHolder (My UIComponent).</p>
  
  <p>Thank you</p>