Link to home
Start Free TrialLog in
Avatar of bham3dman
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!
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bham3dman
bham3dman

ASKER

Ah...thanks for the help!