(sorry for duplicate post, but i dun know which field it should be)
here is my situation :
i use PD to send the RGB values (R,G,B) to flash via flash communication server
what i have to do:
convect RGB(R,G,B) value to hex RGB(0xRRGGBB)
and change the color of the movieclip to such color in real-time.
so i try:
+++++ on the 1st frame
…
…
… //get RGB from color sent by PD
r = colors[0];
g = colors[1];
b = colors[2];
TextR = "R = "+r;
TextG = "G = "+g;
TextB = "B = "+b;
TextMsg = msg;
++++ setTransform …
onClipEvent(enterFrame){
var my_color:Color = new Color(_root.my_mc);
var myColorTransform:Object = { ra: 100, rb:_root.r, ga: 100, gb:_root.g, ba: 100, bb:_root.b, aa: 100, ab: 0};
my_color.setTransform(myColorTransform);
}
++++++++++BUT It doesn’t work, becoz :
the color of 251,251,251 should be almost white but, it shows yellow
all other color with same problem …
does anyone have experience on this matter?
how can i improve?