/ Published in: ActionScript 3
Expand |
Embed | Plain Text
function hex2css(color:int):String { return "#" + color.toString(16).toUpperCase(); } var myColour:int = 0xFF6699; trace(hex2css(myColour)); // OUTPUT: #FF6699
You need to login to post a comment.
