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
the ColorTransform.color property takes a hex just like in AS2
so try: newColorTransform.color = 0xFF0000; // red