Hello, just discovered the colorMatrixFilter plugin and I really like it,
I'm finding some issue on a project I'm working.
I'm working with AS3
I loaded 4 different images with color,
I turn them all in black and white.
TweenMax.to(mc, 0, {colorMatrixFilter:{saturation:0}});
then I want that on the mouseover of each image they turn back to the color image and on mouveout turn back to black and white, so I created the EventListener and on the I call the function
miaClip[i].addEventListener(MouseEvent.MOUSE_OVER, suMouse);
miaClip[i].addEventListener(MouseEvent.MOUSE_OUT, fuoriMouse);
then the function
private function suMouse(evento:MouseEvent):void {
var nuovaClip:MovieClip = evento.currentTarget as MovieClip;
TweenMax.to(nuovaClip, 3, {colorMatrixFilter:{saturation:1}});
}
private function fuoriMouse(evento:MouseEvent):void {
var nuovaClip:MovieClip = evento.currentTarget as MovieClip;
TweenMax.to(nuovaClip, 2, {colorMatrixFilter:{saturation:0}});
}
But on the mouseover the image doesn't change at all, I've done some test and if I do the opposite meaning I leave the image with color and apply the saturation 0 on the mouseover and saturation back to 1 on the mouseout everythings work fine.
I think that the problem is that on the mouseover it pass the MovieClip with saturation 0 so it doesn't know how is the image with saturation 1.
Hope I mage myself clear.
Can anyone help me out??