<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Adding icons to a Flex TabNavigator control</title>
	<atom:link href="http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Thu, 18 Mar 2010 20:18:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-6207</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Tue, 03 Nov 2009 01:46:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-6207</guid>
		<description>Works for me. Just verified it again in Flex SDK 3.5.0.11086.

Peter</description>
		<content:encoded><![CDATA[<p>Works for me. Just verified it again in Flex SDK 3.5.0.11086.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivonne</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-6199</link>
		<dc:creator>Ivonne</dc:creator>
		<pubDate>Mon, 02 Nov 2009 19:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-6199</guid>
		<description>Did this work for anyone? I can&#039;t get the icon to the right still...</description>
		<content:encoded><![CDATA[<p>Did this work for anyone? I can&#8217;t get the icon to the right still&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Aleksic</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-5745</link>
		<dc:creator>Jovica Aleksic</dc:creator>
		<pubDate>Sun, 13 Sep 2009 14:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-5745</guid>
		<description>Heh, totally forgot about this entry. Long time no see :-)

Well, my Assets class is (overly) complicated and consists of several helper classes. It would be too much to post it here. Should somebody be interested, feel free to drop a mail at jovica.aleksic_at_loopmode.de.

However, the TabNavigator-with-icons situation became obsolete, because due to further project-specific complications I decided not to use the Flex TabNavigator, but create a &quot;fake&quot; custom tabNavigator using the usual containers like Canvas, Hbox etc.</description>
		<content:encoded><![CDATA[<p>Heh, totally forgot about this entry. Long time no see :-)</p>
<p>Well, my Assets class is (overly) complicated and consists of several helper classes. It would be too much to post it here. Should somebody be interested, feel free to drop a mail at jovica.aleksic_at_loopmode.de.</p>
<p>However, the TabNavigator-with-icons situation became obsolete, because due to further project-specific complications I decided not to use the Flex TabNavigator, but create a &#8220;fake&#8221; custom tabNavigator using the usual containers like Canvas, Hbox etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4834</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 29 Jul 2009 23:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4834</guid>
		<description>@Jovica Aleksic,

What does your Assets class look like? Can you post the code here.

Peter</description>
		<content:encoded><![CDATA[<p>@Jovica Aleksic,</p>
<p>What does your Assets class look like? Can you post the code here.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Aleksic</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4816</link>
		<dc:creator>Jovica Aleksic</dc:creator>
		<pubDate>Wed, 29 Jul 2009 12:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4816</guid>
		<description>My example was supposed to be
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;Image source=&quot;{Assets.getAsset(&#039;TalentTabIconEconomy&#039;)}&quot;/&gt;
&lt;/pre&gt;

and i can&#039;t seem to find a solution yet :(</description>
		<content:encoded><![CDATA[<p>My example was supposed to be</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;Image source=<span style="color: #ff0000;">&quot;{Assets.getAsset('TalentTabIconEconomy')}&quot;</span><span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>and i can&#8217;t seem to find a solution yet :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jovica Aleksic</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4814</link>
		<dc:creator>Jovica Aleksic</dc:creator>
		<pubDate>Wed, 29 Jul 2009 12:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4814</guid>
		<description>I am trying to use icons loaded with my asset loading system (which is quite common-style), and I get a coercion error..

Basically, my Assets singleton class returns a class reference to an asset which is stored inside an external swf.
The assets are loaded, and I use the system everywhere in the project. for example 
&lt;code&gt;

&lt;/code&gt;

Now for use as icon, this approach doesnt seem to work.  I get
&lt;code&gt;
Flex Error #1034: Type Coercion Failed: Cannot Convert TalentTabIconEconomy@6d40c41 to mx.core.IFlexDisplayObject
&lt;/code&gt;

Will try to find a solution and post it here.</description>
		<content:encoded><![CDATA[<p>I am trying to use icons loaded with my asset loading system (which is quite common-style), and I get a coercion error..</p>
<p>Basically, my Assets singleton class returns a class reference to an asset which is stored inside an external swf.<br />
The assets are loaded, and I use the system everywhere in the project. for example<br />
<code></p>
<p></code></p>
<p>Now for use as icon, this approach doesnt seem to work.  I get<br />
<code><br />
Flex Error #1034: Type Coercion Failed: Cannot Convert TalentTabIconEconomy@6d40c41 to mx.core.IFlexDisplayObject<br />
</code></p>
<p>Will try to find a solution and post it here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luc</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4807</link>
		<dc:creator>Luc</dc:creator>
		<pubDate>Wed, 29 Jul 2009 07:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4807</guid>
		<description>I have been trying to animate those icons in the TabNavigator. Any idea on how to do that?
Thanks</description>
		<content:encoded><![CDATA[<p>I have been trying to animate those icons in the TabNavigator. Any idea on how to do that?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4580</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 16 Jul 2009 07:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4580</guid>
		<description>Pan,

I&#039;m not sure if this is the best approach, but you could try and do something like this:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            import mx.controls.ButtonLabelPlacement;
            import mx.controls.TabBar;
            import mx.controls.tabBarClasses.Tab;

            protected function init():void {
                var tabBar:TabBar = tabNav.mx_internal::getTabBar();
                var idx:uint;
                var len:uint = tabBar.numChildren;
                for (idx = 0; idx &lt; len; idx++) {
                    Tab(tabBar.getChildAt(idx)).labelPlacement = ButtonLabelPlacement.LEFT;
                }
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:TabNavigator id=&quot;tabNav&quot; width=&quot;400&quot; height=&quot;300&quot;
                     horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot;
                     creationComplete=&quot;init();&quot;&gt;
        &lt;mx:VBox label=&quot;Accept&quot; icon=&quot;@Embed(&#039;accept.png&#039;)&quot;&gt;
            &lt;!-- child tags --&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Add&quot; icon=&quot;@Embed(&#039;add.png&#039;)&quot;&gt;
            &lt;!-- child tags --&gt;
        &lt;/mx:VBox&gt;
        &lt;mx:VBox label=&quot;Anchor&quot;&gt;
            &lt;!-- child tags --&gt;
        &lt;/mx:VBox&gt;
    &lt;/mx:TabNavigator&gt;

&lt;/mx:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Pan,</p>
<p>I&#8217;m not sure if this is the best approach, but you could try and do something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            import mx.controls.ButtonLabelPlacement;</span>
<span style="color: #339933;">            import mx.controls.TabBar;</span>
<span style="color: #339933;">            import mx.controls.tabBarClasses.Tab;</span>
&nbsp;
<span style="color: #339933;">            protected function init():void {</span>
<span style="color: #339933;">                var tabBar:TabBar = tabNav.mx_internal::getTabBar();</span>
<span style="color: #339933;">                var idx:uint;</span>
<span style="color: #339933;">                var len:uint = tabBar.numChildren;</span>
<span style="color: #339933;">                for (idx = 0; idx &lt; len; idx++) {</span>
<span style="color: #339933;">                    Tab(tabBar.getChildAt(idx)).labelPlacement = ButtonLabelPlacement.LEFT;</span>
<span style="color: #339933;">                }</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:TabNavigator</span> id=<span style="color: #ff0000;">&quot;tabNav&quot;</span> width=<span style="color: #ff0000;">&quot;400&quot;</span> height=<span style="color: #ff0000;">&quot;300&quot;</span></span>
<span style="color: #000000;">                     horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">                     creationComplete=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Accept&quot;</span> icon=<span style="color: #ff0000;">&quot;@Embed('accept.png')&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- child tags --&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Add&quot;</span> icon=<span style="color: #ff0000;">&quot;@Embed('add.png')&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- child tags --&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:VBox</span> label=<span style="color: #ff0000;">&quot;Anchor&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- child tags --&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:VBox</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:TabNavigator</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pan</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-4577</link>
		<dc:creator>Pan</dc:creator>
		<pubDate>Thu, 16 Jul 2009 06:38:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-4577</guid>
		<description>I want add the icon to right,i need you help</description>
		<content:encoded><![CDATA[<p>I want add the icon to right,i need you help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prashant shelke</title>
		<link>http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/comment-page-1/#comment-641</link>
		<dc:creator>prashant shelke</dc:creator>
		<pubDate>Sat, 17 Jan 2009 03:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/08/16/adding-icons-to-a-flex-tabnavigator-control/#comment-641</guid>
		<description>Hi,

Can we add link button @ place of icon ?

Thanks,
Prashant Shelke.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can we add link button @ place of icon ?</p>
<p>Thanks,<br />
Prashant Shelke.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
