title: How to embed and display a png with FlashDevelop, Haxe and Swfmill
body: <p>I am having trouble getting a png file to display in a simple Flash application I am building using <strong>Haxe</strong> and FlashDevelop.</p>
  
  <p>Step taken</p>
  
  <ul>
  <li>Added the png file to my project.</li>
  <li>Added the png to the library</li>
  <li>Set the option to embed as a bitmap</li>
  <li>Set an Id for the object "PlayerBitmap"</li>
  <li>Verified that the xml generated looks correct</li>
  </ul>
  
  <p>I then try to display the embedded image:</p>
  
  <pre><code>var bitmap:Bitmap;
  bitmap = new PlayerBitmap();
  bitmap.x = 200;
  bitmap.y = 200; 
  addChild(bitmap);
  </code></pre>
  
  <p>The code compiles and generates a swf file but the image is not shown.
  Any pointers?</p>