El website está aquí! www.rese7.com/portfolio/
Todo funciona correctamente, el problema es cuando pulso uno de los trabajos, al hacer mouseout y se vuelve a minimizar, lo tinto con colorMatrixFilter, pero ya no puedo volver a seleccionarlo ni quitarle el efecto.
El código es el siguiente:
Código ActionScript :
for (var i:int = 0; i <=14 ; i++)
{
this["i" + i].addEventListener(MouseEvent.ROLL_OVER,overBoton);
this["i" + i].addEventListener(MouseEvent.ROLL_OUT, outBoton);
this["i" + i].addEventListener(MouseEvent.CLICK, clickBoton);
this["i" + i].buttonMode = true;
this["i" + i].mouseChildren = true;
}Código ActionScript :
private function overBoton(e:MouseEvent):void
{
e.target.alpha = 1;
TweenLite.to(e.target, 0.4, {alpha:1, scaleX:1.1, scaleY:1.1, delay:0});
}
private function outBoton(e:MouseEvent):void
{
e.target.alpha = 0.7;
TweenLite.to(e.target, 0.4, {alpha:0.5, scaleX:1, scaleY:1, delay:0});
}
private function clickBoton(e:MouseEvent):void
{
e.target.alpha = 1;
e.target.gotoAndStop("2");
e.target.parent.setChildIndex( e.target , e.target.parent.numChildren-1);
TweenLite.to(e.target, 0.4, {alpha:1, scaleX:3, scaleY:3, delay:0});
e.target.addEventListener(MouseEvent.MOUSE_OUT, function(ev:MouseEvent){
e.target.gotoAndStop("1");TweenMax.to(e.target, 1, {colorMatrixFilter:{colorize:0xff0000, amount:1}});});
}A ver si a alguien le ha pasado y puede ayudarme a solucionarlo. Muchas gracias!
