jacoflash
05-05-2005, 09:18 AM
hello
i am using a percentage type script that convert the width and height of an movieclip as a percentage out of 255.
So now i trace these properties of the movieclip and get the value out of 255, so I should now be able to use this information to set the color of another movieclip only problem is I dont know how to convert the decimal value into a hexadecimal one.
for example I have:
rgb = r + ","+g+","+b;
this will typically return something like -> 255,128,200
how do i get this back to a hex value?
thanx in advance
i am using a percentage type script that convert the width and height of an movieclip as a percentage out of 255.
So now i trace these properties of the movieclip and get the value out of 255, so I should now be able to use this information to set the color of another movieclip only problem is I dont know how to convert the decimal value into a hexadecimal one.
for example I have:
rgb = r + ","+g+","+b;
this will typically return something like -> 255,128,200
how do i get this back to a hex value?
thanx in advance