bham3dman
asked on
How do I convert RGB numeric value to Hex in Actionscript 3?
Greetings Experts!
Can you please assist me with converting an RGB value to Hex?
For instance, I'm using getPixel(mc.mouseX, mc.mouseY) to return an RGB value - such as 16651277. I would like to convert this number to hex.
What's the simplest method for handling this? Can I do a direct conversion of this RGB value to hex without breaking it down into its R, G, and B components?
Thanks!
Can you please assist me with converting an RGB value to Hex?
For instance, I'm using getPixel(mc.mouseX, mc.mouseY) to return an RGB value - such as 16651277. I would like to convert this number to hex.
What's the simplest method for handling this? Can I do a direct conversion of this RGB value to hex without breaking it down into its R, G, and B components?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER