32-bit integer to RGB hex conversion

topic posted Fri, September 11, 2009 - 11:58 AM by  Jesse
Share/Save/Bookmark
Advertisement
hey all,
I am working on a project where the user selects a color in a Flash movie and the color value is then passed to a PHP script.

The color value returned by the Flash application is a 32-bit integer with an Alpha channel value of 0. I would like to convert that to its RGB hexadecimal value but have not been able to figure out how. I found Google results about using the bitwise operator to make the conversion in the other direction (from a known RGB hex to an integer), but if I read it right, it does not look like I can use the same process in reverse.

Is there a simple way to do this? Your advice is much appreciated!
posted by:
Jesse
Advertisement
Advertisement

Recent topics in "Web Design"

Topic Author Replies Last Post
RSS News aggregator JAKEYERBOOTY 3 October 23, 2009
How to make floated divs height equal SMSapphire 2 October 19, 2009
Actionscript for linking to a URL Unsubscribed 6 September 26, 2009
Entire Site In Flash? Unsubscribed 3 September 11, 2009
Quality website templates Eyesys 4 September 11, 2009