Jason, I've no idea whether you have already considered this but: function rgbToHex(clr:Number):String{ var clrTrans:ColorTransform = new ColorTransform(); clrTrans.rgb = clr; return ("0x" + clrTrans.rgb.toString(16)); } HTH
-Keith http://home.mn.rr.com/keithreinfeld -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, August 22, 2006 12:57 PM To: Flashcoders mailing list Subject: [Flashcoders] Hex colors function? Anyone have a function that returns an array of the hex color values for a particular range (i.e., say the 144 hex colors you see in the Flash IDE's color picker)? Or know how to write one? I'm not looking for a complete color picker class or component, I'm creating my own with specific needs, but to do so, I'm not sure how the hex number math works. Don't really want to enter all the values manually. Thanks. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com