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