Michael:

MXML Code . . . .

<mx:TabBar styleName="MyTabBar" . . .

CSS Code . . . .

.MyTabBar {
        
   paddingTop:                          0;
   paddingLeft:                         0;
   verticalGap:                         0;
   themeColor:                          #345D86;
   borderStyle:                         solid;
   borderThickness:                     0.75;
   dropShadowEnabled:                   false;
   tabStyleName:                        "MyTabs";
   selectedTabTextStyleName:            "MySelectedTab";
        
}

.MyTabs {
        
   cornerRadius:                5;
   fillAlphas:                  1, 1, 1, 1;
   highlightAlphas:             0, 0.3, 0, 0.3;
   textRollOverColor:           #0F3780;        
   fillColors:                  #DDE7F4, #DDE7F4, #FA075D, #FA075D;
   backgroundColor:             #5681B2;
   borderColor:                 #345D86;
   color:                       #FFFFFF;
   fontWeight:                  bold;
   fontFamily:                  Verdana;
        
}

.MySelectedTab {
        
   color:                       #FFFFFF;
}


Thanks,

Jack

--- In [email protected], "Michael Schmalle" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> You know what, I eat my words.
> 
> I quickly looked at that class but missed the fact in the over 
skin they do
> use 2 and 3 index.
> 
> if (fillColors.length > 2)
> overFillColors = [ fillColors[2], fillColors[3] ];
> else
> overFillColors = [ fillColors[0], fillColors[1] ];
> 
> What does this mean? based on that code I would expect what you 
are doing to
> work correctly. Although I am looking at Flex 3 sdk code. I'm sure 
it is the
> same for Flex 2.0.1
> 
> Can you post the code you are using.
> 
> Mike
> 
> On Mon, Sep 22, 2008 at 1:22 PM, jwc_wensan <[EMAIL PROTECTED]> wrote:
> 
> >   Michael:
> >
> > I guess I expected the second set to work like the second set 
does
> > for a ComboBox.
> >
> > May I ask then why is there a second set of colors if you have 
to go
> > in and create your own skin/component?
> >
> > Seems a little confusing.
> >
> > I don't really understand all the AS code for these components, 
but
> > I'll check it out.
> >
> > Thanks for the info.
> >
> > Jack
> >
> > --- In [email protected] <flexcoders%
40yahoogroups.com>, "Michael
> > Schmalle"
> > <teoti.graphix@> wrote:
> > >
> > > Hi Jack,
> > > Take a look at mx.skins.halo.TabSkin
> > >
> > > This class is not like the ButtonSkin, you can see in this line
> > exactly what
> > > the skin is doing.
> > >
> > > case "upSkin":
> > > {
> > > var upFillColors:Array =
> > > [ falseFillColors[0], falseFillColors[1] ];
> > >
> > > You will need to implement your own skin for that 
functionality.
> > >
> > > Mike
> > >
> > >
> > > On Mon, Sep 22, 2008 at 12:26 PM, jwc_wensan <jwcaldwell@>
> > wrote:
> > >
> > > > Good morning:
> > > >
> > > > I have set the the 3rd and 4th colors for my TabBar as such 
in
> > the
> > > > CSS file. Example: fillColors: #DDE7F4, #DDE7F4, #FA075D,
> > #FA075D;
> > > >
> > > > However, it does not use the second set of values. I set the
> > second
> > > > set to red in the example just to get a contrast.
> > > >
> > > > The Language Reference indicates you can use either one set 
or
> > both
> > > > sets for fillColors in a TabBar.
> > > >
> > > > The second set is for mouseover.
> > > >
> > > > Does this not work in Flex 2.01?
> > > >
> > > > I looked at the Flex 2.01 Explorer application and it only 
has 1
> > set
> > > > of colors to select from.
> > > >
> > > > I even tried using a TabNavigator but it does not use the 
second
> > set
> > > > of colors either.
> > > >
> > > > In both cases, on mouse over, it displays a lighter color
> > > > combination of the first set of colors.
> > > >
> > > > Does it work in Flex 3?
> > > >
> > > > Thanks,
> > > >
> > > > Jack
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Teoti Graphix, LLC
> > > http://www.teotigraphix.com
> > >
> > > Teoti Graphix Blog
> > > http://www.blog.teotigraphix.com
> > >
> > > You can find more by solving the problem then by 'asking the
> > question'.
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Teoti Graphix, LLC
> http://www.teotigraphix.com
> 
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
> 
> You can find more by solving the problem then by 'asking the 
question'.
>


Reply via email to