You can also do the following:
var bitmapData = new BitmapData (Math.ceil (shape.width), Math.ceil (shape.height), true, 0);
bitmapData.draw (shape);
bitmapData.colorTransform (...);
You can also do the following:
var bitmapData = new BitmapData (Math.ceil (shape.width), Math.ceil (shape.height), true, 0);
bitmapData.draw (shape);
bitmapData.colorTransform (...);