Hi,
For TabNavigator i don't have idea, same thing we can do by using TabBar.
We have to add tabs dynamically..... by using "tab" component.
<mx:HBox >
<mx:TabBar styleName="AppTab" tabHeight="64" horizontalGap="-1"
id="tabMain" alpha="5" creationComplete="tabBarCreationComplete()"
useHandCursor="true" buttonMode="true" >
</mx:TabBar>
<mx:ViewStack dataProvider={tabMain}>
<mx:Canvas label = "Home"/>
<mx:Canvas label = "Case"/>
</mx:ViewStack>
</mx:HBox>
<Script>//////////////
import mx.controls.tabBarClasses.Tab;
private function tabBarCreationComplete():void
{
[Embed(source='../../assets/images/Home_Hover.png')]
var imgHome_HoverTab0:Class;
[Embed(source='../../assets/images/Home_Sel.png')]
var imgHome_SelTab0:Class;
[Embed(source='../../assets/images/Home_NonSel.png')]
var imgHome_NonSelTab0:Class;
[Embed(source='../../assets/images/Cases_Sel.png')]
var imgCases_SelTab1:Class;
[Embed(source='../../assets/images/Cases_NonSel.png')]
var imgCases_NonSelTab1:Class;
[Embed(source='../../assets/images/Cases_Hover.png')]
var imgCases_HoverTab1:Class;
var tab0:Tab = tabMain.getChildAt(0) as Tab;
tab0.setStyle("upSkin",imgHome_NonSelTab0);
tab0.setStyle("downSkin",imgHome_SelTab0);
tab0.setStyle("overSkin",imgHome_HoverTab0);
tab0.setStyle("selectedDownSkin",imgHome_SelTab0);
tab0.setStyle("selectedOverSkin",imgHome_SelTab0);
tab0.setStyle("selectedUpSkin",imgHome_SelTab0);
var tab1:Tab = tabMain.getChildAt(1) as Tab;
tab1.setStyle("upSkin",imgCases_NonSelTab1);
tab1.setStyle("downSkin",imgCases_SelTab1);
tab1.setStyle("overSkin",imgCases_HoverTab1);
tab1.setStyle("selectedDownSkin",imgCases_SelTab1);
tab1.setStyle("selectedOverSkin",imgCases_SelTab1);
tab1.setStyle("selectedUpSkin",imgCases_SelTab1);
}
i think this will help u...........!
Cheers,
Prakash..
On Mon, Apr 27, 2009 at 6:12 AM, Rahul Sood <[email protected]> wrote:
> Hi Gurus,
>
> I am trying to Skin a TabNavigator Component.
> Is it possible to have a different color in a particular Tab of the Tab
> Navigator ?
> Some Tabs need to have different Color Scheme than the rest.
>
> Plz advise,
> Thanks,
> Rahul.
>
> --
> *"Learning is not necessary, neither is survival"*
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---