3 Replies Latest reply on Oct 20, 2007 10:21 PM by uxk

    Changing hues in MC

    uxk Level 1
      Anyidea how do we change the hues while maintaining the gradient of a MovieClip, using the colorObject method in AS2.
      I know how to change color using colorObject. Does the getTransform do this piece of work?
        • 1. Re: Changing hues in MC
          kglad Adobe Community Professional & MVP
          you'll need to use the bitmapdata class to control each pixel. but it's simpler and may be satisfactory for you to use a black and/or white movieclip whose _alpha you control and attach to your target mvoieclip to give the effect of darkening and/or lightening your target.
          • 2. Re: Changing hues in MC
            clbeech Level 3
            another thought here, if you do start with a b/w gradient, you can use the ColorTransform class to transition the grad. Here's a really basic example: FILE
            • 3. Re: Changing hues in MC
              uxk Level 1
              Just to share with you that I made use of the getTransform method and it worked fine. Is the multiplier method a preferred method for changng gradients in symbols?
              var my_color:Color = new Color(my_mc);
              var myTransform:Object = my_color.getTransform();
              myTransform = { ra:100, ga: 65, ba: -8, rb: 170, gb:0 , bb:0 , aa:100 , ab:0 };

              my_btn.onPress =function(){