<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>GhostWire Studios &#187; TabView</title>
	<atom:link href="http://www.ghostwire.com/blog/archives/tag/tabview/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghostwire.com/blog</link>
	<description>Flash UI Components</description>
	<lastBuildDate>Tue, 23 Aug 2011 03:51:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>uiBTabView Example Using &#8220;classic&#8221; Theme</title>
		<link>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/</link>
		<comments>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 01:52:50 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Skinning]]></category>
		<category><![CDATA[TabView]]></category>
		<category><![CDATA[Themes]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=794</guid>
		<description><![CDATA[This demo is the same as that in the previous post uiBTabView Example Using &#8220;xp&#8221; Theme, but we are using a different theme this time: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottomTabViewDemo_844269435"
			class="flashmovie"
			width="300"
			height="200">
	<param name="movie" value="/aspireui/swf/BottomTabViewDemo.swf" />
	<param name="flashvars" value="classic=true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/BottomTabViewDemo.swf"
			name="fm_BottomTabViewDemo_844269435"
			width="300"
			height="200">
		<param name="flashvars" value="classic=true" />
	<!--<![endif]-->
		 
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Within the application code, a single line of code determines which theme to use: uiSkins.initialize&#40;theme&#41;; If the uiSkins.initialize() call is omitted, the [...]]]></description>
			<content:encoded><![CDATA[<p>This demo is the same as that in the previous post <a href="/blog/archives/uibtabview-example-using-xp-theme/">uiBTabView Example Using &#8220;xp&#8221; Theme</a>, but we are using a different theme this time:</p>
<p><span id="more-794"></span></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottomTabViewDemo_960175382"
			class="flashmovie"
			width="300"
			height="200">
	<param name="movie" value="/aspireui/swf/BottomTabViewDemo.swf" />
	<param name="flashvars" value="classic=true" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/BottomTabViewDemo.swf"
			name="fm_BottomTabViewDemo_960175382"
			width="300"
			height="200">
		<param name="flashvars" value="classic=true" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Within the application code, a single line of code determines which theme to use:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">uiSkins.<span style="color: #006600;">initialize</span><span style="color: #66cc66;">&#40;</span>theme<span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>If the <code>uiSkins.initialize()</code> call is omitted, the &#8220;default&#8221; theme is used.</p>
<p>See also: <a href="/aspireui/docs/usage/uiskins">uiSkins usage notes</a></p>
<p>For the complete BottomTabViewDemo class code, please see <a href="/blog/archives/uibtabview-example-using-xp-theme/">the previous post</a>.</p>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by <a href="/aspireui/download/">downloading a trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uibtabview-example-using-classic-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uiBTabView Example Using &#8220;xp&#8221; Theme</title>
		<link>http://www.ghostwire.com/blog/archives/uibtabview-example-using-xp-theme/</link>
		<comments>http://www.ghostwire.com/blog/archives/uibtabview-example-using-xp-theme/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 13:02:31 +0000</pubDate>
		<dc:creator>sunny</dc:creator>
				<category><![CDATA[Aspire UI]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[TabView]]></category>

		<guid isPermaLink="false">http://ghostwire.com/blog/?p=787</guid>
		<description><![CDATA[Here is a live demo featuring the uiBTabView component from the Aspire UI library: uiBTabView places tabs at the bottom. To place tabs at the top, use the uiTabView component. The mini tab scroller is built-in and appears if there is not enough space to display all the tabs. The tab focus order is automatically [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a live demo featuring the uiBTabView component from the <a href="/aspireui/">Aspire UI</a> library:</p>
<ul>
<li>uiBTabView places tabs at the bottom. To place tabs at the top, use the <a href="/aspireui/docs/usage/uitabview">uiTabView</a> component.</li>
<li>The mini tab scroller is built-in and appears if there is not enough space to display all the tabs.</li>
<li>The tab focus order is automatically set up so it flows from top (content area) to bottom (active tab).</li>
<li>When a tab has focus, the arrow keys can be used to change the active tab.</li>
</ul>
<p><span id="more-787"></span></p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_BottomTabViewDemo_342091345"
			class="flashmovie"
			width="300"
			height="200">
	<param name="movie" value="/aspireui/swf/BottomTabViewDemo.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/aspireui/swf/BottomTabViewDemo.swf"
			name="fm_BottomTabViewDemo_342091345"
			width="300"
			height="200">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>See also: <a href="/aspireui/docs/usage/uibtabview">uiBTabView usage notes</a></p>
<p><!-- --><br />
<strong>BottomTabViewDemo class</strong></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">containers</span>.<span style="color: #006600;">uiBox</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">containers</span>.<span style="color: #006600;">uiBTabView</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">containers</span>.<span style="color: #006600;">uiScrollPane</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiCheckBox</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiImage</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiLabel</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiText</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">controls</span>.<span style="color: #006600;">uiTextArea</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #0066CC;">data</span>.<span style="color: #006600;">uiModel</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">enums</span>.<span style="color: #0066CC;">POSITION</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ghostwire</span>.<span style="color: #006600;">ui</span>.<span style="color: #006600;">managers</span>.<span style="color: #006600;">uiSkins</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> BottomTabViewDemo <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> BottomTabViewDemo<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">else</span> addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span>evt:Event = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			removeEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** uncomment to use &quot;classic&quot; theme **</span>
			<span style="color: #808080; font-style: italic;">// uiSkins.initialize(&quot;classic&quot;);</span>
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** optional but recommended **</span>
			<span style="color: #808080; font-style: italic;">// ** let assets preload before starting application **</span>
			uiSkins.<span style="color: #006600;">manager</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">INIT</span>,main<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> main<span style="color: #66cc66;">&#40;</span>evt:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #808080; font-style: italic;">// ** main application code **</span>
			<span style="color: #808080; font-style: italic;">// ** page 1 **</span>
			<span style="color: #000000; font-weight: bold;">var</span> page1:uiBox = <span style="color: #000000; font-weight: bold;">new</span> uiBox<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			page1.<span style="color: #006600;">fillX</span> = page1.<span style="color: #006600;">fillY</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			page1.<span style="color: #006600;">vertical</span>	= <span style="color: #000000; font-weight: bold;">true</span>;
			page1.<span style="color: #006600;">spacing</span>	= <span style="color: #cc66cc;">10</span>;
			page1.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Option A&quot;</span>,<span style="color: #ff0000;">&quot;star.png&quot;</span>,<span style="color: #0066CC;">POSITION</span>.<span style="color: #006600;">BOTTOM</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			page1.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Option B&quot;</span>,<span style="color: #ff0000;">&quot;star.png&quot;</span>,<span style="color: #0066CC;">POSITION</span>.<span style="color: #006600;">BOTTOM</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
			page1.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> uiCheckBox<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Option C&quot;</span>,<span style="color: #ff0000;">&quot;star.png&quot;</span>,<span style="color: #0066CC;">POSITION</span>.<span style="color: #006600;">BOTTOM</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** page 2 **</span>
			<span style="color: #000000; font-weight: bold;">var</span> page2:uiTextArea = <span style="color: #000000; font-weight: bold;">new</span> uiTextArea<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;this is a text area&quot;</span><span style="color: #66cc66;">&#41;</span>;
			page2.<span style="color: #006600;">fillX</span> = page2.<span style="color: #006600;">fillY</span> = <span style="color: #000000; font-weight: bold;">true</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** page 3 **</span>
			<span style="color: #000000; font-weight: bold;">var</span> page3:uiScrollPane = <span style="color: #000000; font-weight: bold;">new</span> uiScrollPane<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			page3.<span style="color: #006600;">fillX</span> = page3.<span style="color: #006600;">fillY</span> = <span style="color: #000000; font-weight: bold;">true</span>;
			page3.<span style="color: #006600;">content</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> uiImage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;flower.jpg&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// the data model specifying the pages **</span>
			<span style="color: #000000; font-weight: bold;">var</span> model:uiModel = <span style="color: #000000; font-weight: bold;">new</span> uiModel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page One&quot;</span>, child:page1 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
			model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Two&quot;</span>, child:page2 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
			model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Three&quot;</span>, image:<span style="color: #ff0000;">&quot;star.png&quot;</span>, child:page3 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
			model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Four&quot;</span>, child:<span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Page Four&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
			model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Five&quot;</span>, child:<span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Page Five&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** create the tabview **</span>
			<span style="color: #000000; font-weight: bold;">var</span> tbv:uiBTabView = <span style="color: #000000; font-weight: bold;">new</span> uiBTabView<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			tbv.<span style="color: #006600;">model</span> = model;
			tbv.<span style="color: #006600;">uitabviewbar</span>.<span style="color: #006600;">itemRenderer</span> = uiLabel;
			tbv.<span style="color: #006600;">uitabviewbar</span>.<span style="color: #006600;">dataMap</span> = <span style="color: #66cc66;">&#123;</span> <span style="color: #0066CC;">text</span>:<span style="color: #ff0000;">&quot;label&quot;</span>, image:<span style="color: #ff0000;">&quot;image&quot;</span>, textPosition:<span style="color: #ff0000;">&quot;textPosition&quot;</span> <span style="color: #66cc66;">&#125;</span>
			tbv.<span style="color: #006600;">setSize</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">280</span>, <span style="color: #cc66cc;">180</span><span style="color: #66cc66;">&#41;</span>;
			tbv.<span style="color: #006600;">move</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>, <span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">// ** add to display list **</span>
			addChild<span style="color: #66cc66;">&#40;</span>tbv<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<ul>
<li>The tab pages are defined using a data model object ((<code>uiModel</code> object), which is then set as the value of the <code>model</code> property of the tab view component.</li>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> model:uiModel = <span style="color: #000000; font-weight: bold;">new</span> uiModel<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page One&quot;</span>, child:page1 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Two&quot;</span>, child:page2 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Three&quot;</span>, image:<span style="color: #ff0000;">&quot;star.png&quot;</span>, child:page3 <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Four&quot;</span>, child:<span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Page Four&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
model.<span style="color: #006600;">addItem</span><span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#123;</span> label:<span style="color: #ff0000;">&quot;Page Five&quot;</span>, child:<span style="color: #000000; font-weight: bold;">new</span> uiText<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Page Five&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#125;</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> tbv:uiBTabView = <span style="color: #000000; font-weight: bold;">new</span> uiBTabView<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
tbv.<span style="color: #006600;">model</span> = model;</pre></div></div>

<li>The third tab has an icon in the tab.  In the example above, the <code>uiLabel</code> class is used as the <code>itemRenderer</code> (by default the <code>uiText</code> class is used) &#8211; this allows icons to be displayed in the tabs.</li>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">tbv.<span style="color: #006600;">uitabviewbar</span>.<span style="color: #006600;">itemRenderer</span> = uiLabel;</pre></div></div>

<li>The <code>dataMap</code> property is responsible for mapping properties in the data objects to the properties in the renderer class.</li>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">tbv.<span style="color: #006600;">uitabviewbar</span>.<span style="color: #006600;">dataMap</span> = <span style="color: #66cc66;">&#123;</span> <span style="color: #0066CC;">text</span>:<span style="color: #ff0000;">&quot;label&quot;</span>, image:<span style="color: #ff0000;">&quot;image&quot;</span>, textPosition:<span style="color: #ff0000;">&quot;textPosition&quot;</span> <span style="color: #66cc66;">&#125;</span></pre></div></div>

</ul>
<p><!-- --><br />
<strong>Aspire UI Components</strong><br />
Aspire UI is a library of Actionscript 3.0 (AS3) classes for building flexible and lightweight UI elements in Adobe Flash applications. Key features of the components include easy skinning using PNG image files, automatic tab focus ordering, CSS text styles, and layout management. This is a pure AS3 library with no dependency on the Flex framework. You may experiment with the various features by <a href="/aspireui/download/">downloading a trial version</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ghostwire.com/blog/archives/uibtabview-example-using-xp-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

