3 Replies Latest reply on Jun 15, 2007 2:41 AM by Jason1388



      Hi all.

      Was wondering if its possible to do/rewrite the following as i am completely programming-blind!

      Based on the following example

      I have a movie with 4 (or more) MC's with an image inside.
      When i rollover 1 MC i want the others to gradually desaturate.
      When i rollout of it, i want the others to turn back to normal again.
      But when i click on one of the MC, i want it to stay 'active' , leaving the others desaturated.

      Made up a concept for this.


      I know it can be done easily, but i just dont know how to rewrite the example / include this in my movie !!

      All help are very welcome !
      Thank you in advance
        • 1. Re: Desaturate
          Jason1388 Level 1
          anyone who can help ?
          Much appreciated !

          • 2. Re: Desaturate
            Level 7
            Are you just looking to turn an image to black and white? If that's the
            case, then you can use the colorMatrix filter:

            import flash.filters.*;
            var elements = [0.33, 0.33, 0.33, 0, 0, 0.33, 0.33, 0.33, 0, 0, 0.33, 0.33,
            0.33, 0, 0, 0, 0, 0, 1, 0];
            var grayFilter:ColorMatrixFilter = new ColorMatrixFilter(elements);
            myClip.filters = [grayFilter];

            You'll have to stick it into a loop if you want to animate the desaturation.

            Dave -
            Head Developer
            Adobe Community Expert

            • 3. Re: Desaturate
              Jason1388 Level 1
              Well, yes and no.

              I want it to be event triggered (is that the right way to say it ?)

              Meaning that there are 8 photo's, and i when rolling over 1 of them, the active one will stay in color and the others gradually desaturate.
              When i click on the photo it must stay in that state.

              But when i rollover to a different photo, all the others should desaturate or remain desaturated.

              Hope this is clear enough :)