[SOLVED] Help applying colortransform to SVG images

The API works like this:

shape1.transform.colorTransform = new ColorTransform (); // or some other color transform object

However, this is not fully implemented right now, we were stuck on some technical details on HTML5 targets, but now have a plan in place and just need to finish the work to get ColorTransform implemented. For the meantime, you can use bitmapData.colorTransform instead:

var bitmapData = new BitmapData (Math.ceil (shape1.width), Math.ceil (shape1.height), true, 0);
bitmapData.draw (shape1);
bitmapData.colorTransform (bitmapData.rect, new ColorTransform ()); // use the transform you want here
var bitmap = new Bitmap (bitmapData);
addChild (bitmap);