/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function hex2css(color:int):String { return "#" + color.toString(16).toUpperCase(); } var myColour:int = 0xFF6699; trace(hex2css(myColour)); // OUTPUT: #FF6699