ColorTransform apply not working on HTML5 :-(

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 (...);