2 Replies Latest reply on Aug 3, 2006 6:29 AM by jaikumari

    Components

    jaikumari
      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
        • 1. Re: Components
          jitendramr Level 1
          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");
          • 2. Re: Components
            jaikumari Level 1
            Thank u so much....