Every single tutorial says to do it like this, which used to work:
[Embed(source="/../images/MyImage.png",mimeType="image/png",smoothing="true")] private static var ImageClass:Class; //[...] var bitmap:Bitmap = new ImageClass();
Again, this used to work, but now (when I use PNGs) it gives me
Error #1034: Type Coercion failed: cannot convert MyImage_png$3e9131867d9df437bb131fa0f25e1d80-479819629@c756f89 to flash.display.Bitmap.
Am I doing something wrong? How do you embed a PNG as a Bitmap?