The Solution

October 13, 2003 by Tim Knight

Customizing Colors for Flash Components

Well after seeing all of the users that have read this request and rated it a 4 out of 5.  I thought I would really try to figure this stuff out myself.

It was much simpiler than I could have ever imagined it to be.

First, of course, give your component a name (in this case I have a button called btnMain).

Next, click Frame 1 and write the following ActionScript:

btnMain.setStyle("themeColor","haloBlue")

This will now turn your dreadful green button to a nice calm blue.

Three of these Halo Colors are available: haloGreen (default), haloBlue, and haloOrange.  However you can easily set another color type using:

btnMain.setStyle("themeColor",0xff0000)

This is the same for any of the colored components: data grid, accordian, whatever.

Hope you make good use of it.

more on component customization

January 10, 2005 by Chris Charlton
I'd like to read more articles on component skinning/customization.