The width and height parameters specify the size of the bitmap; the maximum value of both is 2880 pixels. Then how to create bitmapdata larger than the maximum specified size?
There are some tricks to snap a bitmap greater than 2880 pixels. One of the trick is this…
1. Load an empty white or black image of desired pixel size [say it would be around 3000x3000 pixels]
2. Clone its bitmapdata.
var bmpDtaClone:BitmapData = bmp.bitmapData.clone();
3. Now you free to draw anything on this bitmap data and flash would have no objection on it.
bmp.floodFill(0, 0, 0xFFFFFFFF);
bmpDtaClone.draw(this, this.transform.matrix, null, null, null, true);
Caution: Dont forget to dispose the bitmapdata as bitmapdata does not dispose itself. It could choke the memory tunnels.
Try this!