1 Reply Latest reply: Nov 4, 2009 10:20 PM by clbeech RSS

    change the color of a movie clip in AS3

    rahimhaji Community Member

      Dear Friends,

       

      Greetings! iam trying to change color of a movie clip in AS3 using transform command and the following code:

       

      import flash.geom.ColorTransform;
      var newColorTransform:ColorTransform = box.transform.colorTransform;

      newColorTransform.color = 34171200;
      box.transform.colorTransform = newColorTransform;

       

       

      Kinldy tell me, hw can i find the color number? newColorTransform.color = 34171200;

       

      previously i use in AS2 like 0xff0000 for red i will find it from the color palete..

       

      is there any way to use setRGB in AS3.

       

      Thanks in advance..

       

      Regards,

      Syed Abdul Rahim