Flex has a couple of built in methods to do that. The ColorUtil class has 2 methods adjustBrightness and adjustBrightness2
newColor = ColorUtil.adjustBrightness2(0xffddaa, -25) will reduce the brightness of the r g and b values by 25% each. --- In flexcoders@yahoogroups.com, Webdevotion <[EMAIL PROTECTED]> wrote: > > Hello list, > > Does anyone have a function ready that darkens a hexadecimal color? > > eg: var shadedColor : Number = darken( 0xFF0000 ); >