Hello :). Which is the best way to colorize MovieClip using Bitmap?
var element:* = event.target;
var myBitmapData:BitmapData = new BitmapData(100, 72);
myBitmapData.draw(element)
backGroundSprite.graphics.clear();
backGroundSprite.graphics.beginBitmapFill(myBitmapData);
backGroundSprite.graphics.drawRect(0, 0, bc.width, bc.height);
backGroundSprite.graphics.endFill();
The event is MouseEvent. The target is MovieClip containing loaded image. Is this a good practice? I think that it is not, because it depends what kind of picture I load and sometimes the effect is not complete. Which is the best way to colorize image from bitmap pattern? Thank you in advance.