Skip to main content
Participant
August 3, 2006
Question

Components

  • August 3, 2006
  • 1 reply
  • 223 views
whenevr i use a component( ex. Accordian component) it takes the default themeColor if i want to change it to my own colors other then the one which is given in the mxclass files is it possible? if possible how should i do it? im struggling with this for 2 days... pls help me out
This topic has been closed for replies.

1 reply

Participating Frequently
August 3, 2006
You can customize any component....

To change the default theme color, write this:-
componentInstance.setStyle("themeColor","haloGreen");

By default, Flash provides a few color schemes, "haloBlue', "haloOrange", "haloGreen"

You can also provide your own color to components in this way:-

mx.styles.StyleManager.registerColorName("myOwnColor", 0xFF4411);
componentInstance.setStyle("themeColor","myOwnColor");
jaikumariAuthor
Participant
August 3, 2006
Thank u so much....