I like to use .png files to store map data when I’m designing levels. To get at the data, I typically do something like this:
var img:Image = new Image(Art.MAP);
var data:BitmapData = new BitmapData(img.width, img.height, true, 0x00000000);
img.render(data, new Point, new Point);
Where Art.MAP is a .png image embedded in the Art class.
I’m wondering if there is a simpler way to import the .png as a BitmapData.