How do I remove a color transform? (If say, I want to revert back to the original color):
I tried null but this gives me a null error:
my-movieclip-name.transform.colorTransform = null;
Just reset the color transform by creating a new instance of it:
myTransform = new ColorTransform();
instead of recreating a ColorTransform
object you can reset the current one as follows:
myTransform.redMultiplier = 1;
myTransform.greenMultiplier = 1;
myTransform.blueMultiplier = 1;
myTransform.redOffset = 0;
myTransform.greenOffset = 0;
myTransform.blueOffset = 0;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With