hi again, i’m still stuck with my slide gallery.
What i need is a series of pictures on a row that is mouse sensitive, if you move the mouse the gallery move in a loop, (no stop!)
All theese pictures need thees effects:
Normal state: blur
rollOver: unblur
rollOut: blur
click: unblur and desaturate
clicked: all picture pressed remains desaturate until you reload gallery.
what i have done is this:
import gs.*;
this.buttonMode = true;
TweenMax.to(this, 0.5, {blurFilter:{blurX:5, blurY:5}});
this.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
this.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);
this.addEventListener(MouseEvent.CLICK, click);
**end setup of first part**
function click(event:MouseEvent):void
{
MovieClip(root).foto_galleria.bianchialti.gotoAndPlay(2);
MovieClip(root).images.infinite.btrighealte.mouseEnabled = true;
MovieClip(root).images.infinite.btrighealte1.mouseEnabled = true;
MovieClip(root).images.infinite.btrighebasse.mouseEnabled = true;
MovieClip(root).images.infinite.btrighebasse1.mouseEnabled = true;
MovieClip(root).images.infinite.btgrigiealte.mouseEnabled = true;
MovieClip(root).images.infinite.btgrigiealte1.mouseEnabled = true;
MovieClip(root).images.infinite.btgrigiebasse.mouseEnabled = true;
MovieClip(root).images.infinite.btgrigiebasse1.mouseEnabled = true;
MovieClip(root).images.infinite.btbianchebasse.mouseEnabled = true;
MovieClip(root).images.infinite.btbianchebasse1.mouseEnabled = true;
//MovieClip(root).images.infinite.btbianchealte.mouseEnabled = true;
//MovieClip(root).images.infinite.btbianchealte1.mouseEnabled = true;
MovieClip(root).images.infinite.btrosabasse.mouseEnabled = true;
MovieClip(root).images.infinite.btrosabasse1.mouseEnabled = true;
MovieClip(root).images.infinite.btrosaalte.mouseEnabled = true;
MovieClip(root).images.infinite.btrosaalte1.mouseEnabled = true;
MovieClip(root).images.infinite.btverdibasse.mouseEnabled = true;
MovieClip(root).images.infinite.btverdibasse1.mouseEnabled = true;
MovieClip(root).images.infinite.btverdialte.mouseEnabled = true;
MovieClip(root).images.infinite.btverdialte1.mouseEnabled = true;
MovieClip(root).images.infinite.btrombibasse.mouseEnabled = true;
MovieClip(root).images.infinite.btrombibasse1.mouseEnabled = true;
MovieClip(root).images.infinite.btrombialte.mouseEnabled = true;
MovieClip(root).images.infinite.btrombialte1.mouseEnabled = true;
**here over i enable all buttons exept this that i disable under here **
MovieClip(root).images.infinite.btbianchealte1.mouseEnabled = false;
MovieClip(root).images.infinite.btbianchealte.mouseEnabled = false;
TweenMax.to( MovieClip(root).images.infinite.btbianchealte, 0.5, {colorMatrixFilter:{saturation:0}});
TweenMax.to( MovieClip(root).images.infinite.btbianchealte1, 0.5, {colorMatrixFilter:{saturation:0}});
TweenMax.to( MovieClip(root).images.infinite.btbianchealte, 0.5, {blurFilter:{blurX:0,blurY:0}});
TweenMax.to( MovieClip(root).images.infinite.btbianchealte1, 0.5, {blurFilter:{blurX:0,blurY:0}});
TweenMax.to( MovieClip(root).images.infinite.btgrigiebasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btgrigiebasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btgrigiealte, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btgrigiealte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btbianchebasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btbianchebasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
//TweenMax.to( MovieClip(root).images.infinite.btbianchealte, 0.5, {blurFilter:{blurX:5, blurY:5}});
//TweenMax.to( MovieClip(root).images.infinite.btbianchealte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrosabasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrosabasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrosaalte, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrosaalte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btverdibasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btverdibasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btverdialte, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btverdialte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrombibasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrombibasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrombialte, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrombialte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrighealte, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrighealte1, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrighebasse, 0.5, {blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btrighebasse1, 0.5, {blurFilter:{blurX:5, blurY:5}});
**here over i set all other buttons to blur execpt this one**
}
function mouseOverHandler(e:Event):void {
TweenMax.to( MovieClip(root).images.infinite.btbianchealte,0.5,{blurFilter:{blurX:0,blurY:0}});
TweenMax.to( MovieClip(root).images.infinite.btbianchealte1,0.5,{blurFilter:{blurX:0,blurY:0}});
}
function mouseOutHandler(e:Event):void {
TweenMax.to( MovieClip(root).images.infinite.btbianchealte,0.5,{blurFilter:{blurX:5, blurY:5}});
TweenMax.to( MovieClip(root).images.infinite.btbianchealte1,0.5,{blurFilter:{blurX:5, blurY:5}});
}
This works but i would like to have unblur the last button pressed…
I did some tries but i’m not a good programmer…
Look here for my work : http://lnx.havana7.it/madama/ (click catalogo)
and here is the fla (cs3) : http://lnx.havana7.it/madama/test3.fla