<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Custom skin for tab bar navigator</title>
	<atom:link href="http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/</link>
	<description>flex developers web corner</description>
	<pubDate>Fri, 21 Nov 2008 18:46:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: Stelian Crisan</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-888</link>
		<dc:creator>Stelian Crisan</dc:creator>
		<pubDate>Fri, 31 Oct 2008 07:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-888</guid>
		<description>I think you can do different style arguments for each tab, in this case you need to know how many tabs you have. So, there are a few steps:

1. Go to your .css file and on tab class add something like this:
bgColorTab1: #ff0000;
bgColorTab2: #00ff00;
bgColorTab3: #0000ff;
and so on for each argument you need to change.

2. Go to your skin file and define you new arguments
var bgColorTabs:Array= new Array(getStyle("bgColorTab1"), getStyle("bgColorTab2"), getStyle("bgColorTab3"));

3. Find the tab index. In skin file you can add this code:
                var xTab:int = 0;
		if ( parent != null )
		{
			xTab = Math.round(parent.x/w); 
		}

4. Use the colors. In skin file change for example off color:
        case "upSkin":
	case "overSkin":
         {
               ....
                drawRoundRect(
		         1, 2, w - 4, h - 3, cr2,
			uint(bgColorTabs[xTab]), 1);
                   ...
               }

I think that is the solution, for now. I will try to make an nice example in a few days, but until then you can have a look on this solution at &lt;a href="http://www.flexer.info/files/example/CustomSkinForTabBar2.swf" target=_blank" rel="nofollow"&gt;www.flexer.info/.../CustomSkinForTabBar2.swf&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I think you can do different style arguments for each tab, in this case you need to know how many tabs you have. So, there are a few steps:</p>
<p>1. Go to your .css file and on tab class add something like this:<br />
bgColorTab1: #ff0000;<br />
bgColorTab2: #00ff00;<br />
bgColorTab3: #0000ff;<br />
and so on for each argument you need to change.</p>
<p>2. Go to your skin file and define you new arguments<br />
var bgColorTabs:Array= new Array(getStyle(&#8221;bgColorTab1&#8243;), getStyle(&#8221;bgColorTab2&#8243;), getStyle(&#8221;bgColorTab3&#8243;));</p>
<p>3. Find the tab index. In skin file you can add this code:<br />
                var xTab:int = 0;<br />
		if ( parent != null )<br />
		{<br />
			xTab = Math.round(parent.x/w);<br />
		}</p>
<p>4. Use the colors. In skin file change for example off color:<br />
        case &#8220;upSkin&#8221;:<br />
	case &#8220;overSkin&#8221;:<br />
         {<br />
               &#8230;.<br />
                drawRoundRect(<br />
		         1, 2, w - 4, h - 3, cr2,<br />
			uint(bgColorTabs[xTab]), 1);<br />
                   &#8230;<br />
               }</p>
<p>I think that is the solution, for now. I will try to make an nice example in a few days, but until then you can have a look on this solution at <a href="http://www.flexer.info/files/example/CustomSkinForTabBar2.swf"  target=_blank" rel="nofollow">http://www.flexer.info/&#8230;/CustomSkinForTabBar2.swf</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glenn</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-885</link>
		<dc:creator>Glenn</dc:creator>
		<pubDate>Thu, 30 Oct 2008 19:23:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-885</guid>
		<description>@Greg I'm trying to accomplish individual styles for tabs as well.  We need a clean way to add a styleName attribute to the tabBar's tabs.</description>
		<content:encoded><![CDATA[<p>@Greg I&#8217;m trying to accomplish individual styles for tabs as well.  We need a clean way to add a styleName attribute to the tabBar&#8217;s tabs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stelian Crisan</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-741</link>
		<dc:creator>Stelian Crisan</dc:creator>
		<pubDate>Tue, 09 Sep 2008 08:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-741</guid>
		<description>Hi Yui,

The source in the zip archive posted at the bottom of the article, search for "CustomSkinForTabBar" on this page.</description>
		<content:encoded><![CDATA[<p>Hi Yui,</p>
<p>The source in the zip archive posted at the bottom of the article, search for &#8220;CustomSkinForTabBar&#8221; on this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yui</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-740</link>
		<dc:creator>Yui</dc:creator>
		<pubDate>Tue, 09 Sep 2008 07:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-740</guid>
		<description>Hello,
I would love to see the source of this custom skinning tab bar if possible, as there's no link to it anymore, it seems.

Hope you can help, thanks :)</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I would love to see the source of this custom skinning tab bar if possible, as there&#8217;s no link to it anymore, it seems.</p>
<p>Hope you can help, thanks <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stelian Crisan</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-576</link>
		<dc:creator>Stelian Crisan</dc:creator>
		<pubDate>Tue, 05 Aug 2008 07:27:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-576</guid>
		<description>Hi Greg,

I know that you can have different skin for each action (up, down, over, disabled,selectedUp, selectedDown, selectedOver, selectedDisabled), also you can add more styles an use them for skins but I don't know if you could have different skin for each tab.  You can have different renderer for tab content (for each canvas content).

If you need to know more you can also have a look at a very good component made by Doug McCune here: &lt;a href="http://dougmccune.com/blog/2007/02/07/quest-for-the-perfect-tabnavigator-part-3-with-source/" title"SuperTabNavigator" rel="nofollow"&gt;SuperTabNavigator&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>I know that you can have different skin for each action (up, down, over, disabled,selectedUp, selectedDown, selectedOver, selectedDisabled), also you can add more styles an use them for skins but I don&#8217;t know if you could have different skin for each tab.  You can have different renderer for tab content (for each canvas content).</p>
<p>If you need to know more you can also have a look at a very good component made by Doug McCune here: <a target="_blank" href="http://dougmccune.com/blog/2007/02/07/quest-for-the-perfect-tabnavigator-part-3-with-source/"  title"SuperTabNavigator" rel="nofollow">SuperTabNavigator</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-575</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Mon, 04 Aug 2008 23:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/2008/02/08/custom-skin-for-tab-bar-navigator/#comment-575</guid>
		<description>I read your article on skinning a Flex Tabbar. Glad you posted this. Thanks. Do you know if it's possible to have each tab skinned differently? If so, where and how do you specify how each tab should be skinned.
I've been given graphics specific to what each tab should have, including it's up, down, over, and disabled state for each tab.
Thanks for you assistance.</description>
		<content:encoded><![CDATA[<p>I read your article on skinning a Flex Tabbar. Glad you posted this. Thanks. Do you know if it&#8217;s possible to have each tab skinned differently? If so, where and how do you specify how each tab should be skinned.<br />
I&#8217;ve been given graphics specific to what each tab should have, including it&#8217;s up, down, over, and disabled state for each tab.<br />
Thanks for you assistance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
