« Very First Flex Preloader Customization
» How To Remove the “Black Line” from a Tree Control (Drag and Drop Enabled)

ActionScript, Flex 2, How to, MXML

Custom skin for tab bar navigator

08.02.08 | 2 Comments

This it’s an working example of how you can customize your tab bar navigation.


So, we have a MXML file, style file and a skin script. Let’s see them all.In MXML file we just link style.css file and I have used a TabNavigator component with 3 tabs. Style.css files contains to css classes one for TabNavigator as a component and for a single tab.To change the skin of a flex component you have to take the actionscript file from Flex SDK folder, move it to your application and customize it. Don’t forget to link this file to you new css class.For example I create a new folder in my aplication assets/skin and I put there TabSkin.as file; in css class I refer to this file for al available states lik ethis:

disabledSkin: ClassReference("assets.skins.TabSkin");
 
downSkin: ClassReference("assets.skins.TabSkin");
 
overSkin: ClassReference("assets.skins.TabSkin");
 
selectedDisabledSkin: ClassReference("assets.skins.TabSkin");
 
selectedDownSkin: ClassReference("assets.skins.TabSkin");
 
selectedOverSkin: ClassReference("assets.skins.TabSkin");
 
selectedUpSkin: ClassReference("assets.skins.TabSkin");
 
upSkin: ClassReference("assets.skins.TabSkin");

I hope it’s a clear exemple, for more details, please, leave us a comment.

You can also download the source of this example from here.

Popularity: 63%

Share and Enjoy:
  • Technorati
  • StumbleUpon
  • del.icio.us
  • NewsVine
  • Reddit
  • Digg
  • Furl
  • co.mments
  • blogmarks
  • Slashdot
  • DZone
  • Taggly
  • YahooMyWeb
  • connotea
  • Webride
CustomSkinForTabBar (1)
CustomSkinForTabBar




Tags: , , ,

This post was written by Stelian Crisan

Views: 3734

related

popular

2 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:

:


« Very First Flex Preloader Customization
» How To Remove the “Black Line” from a Tree Control (Drag and Drop Enabled)