                    <?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>Way&#039;s Blog &#187; Flex</title>
	<atom:link href="http://way.cubeforge.net/blog/tag/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://way.cubeforge.net/blog</link>
	<description>Hong Kong Adobe Flex Developer</description>
	<lastBuildDate>Fri, 06 Jan 2012 04:04:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Designer Effects for Flex</title>
		<link>http://way.cubeforge.net/blog/2010/01/designer-effects-for-flex/</link>
		<comments>http://way.cubeforge.net/blog/2010/01/designer-effects-for-flex/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 04:42:42 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Designer]]></category>
		<category><![CDATA[Effects]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=563</guid>
		<description><![CDATA[Efflex is a good site providing a number of custom effects for Flex. http://www.efflex.org/orgefflexmxviewstackeffects/ Here is the Effect Explorer by Efflex. You can preview all the effects and try to customize the effect options. http://www.efflex.org/EfflexExplorer.html]]></description>
			<content:encoded><![CDATA[<p>Efflex is a good site providing a number of custom effects for Flex.</p>
<p><a href="http://www.efflex.org/orgefflexmxviewstackeffects/">http://www.efflex.org/orgefflexmxviewstackeffects/</a></p>
<p>Here is the Effect Explorer by Efflex. You can preview all the effects and try to customize the effect options.</p>
<p><a href="http://www.efflex.org/EfflexExplorer.html">http://www.efflex.org/EfflexExplorer.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2010/01/designer-effects-for-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash / Flex application: Can&#8217;t type chinese character</title>
		<link>http://way.cubeforge.net/blog/2009/08/flash-flex-application-cant-type-chinese-character/</link>
		<comments>http://way.cubeforge.net/blog/2009/08/flash-flex-application-cant-type-chinese-character/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 03:52:50 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[character]]></category>
		<category><![CDATA[chinese]]></category>
		<category><![CDATA[not work]]></category>
		<category><![CDATA[textinput]]></category>
		<category><![CDATA[wmode]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=500</guid>
		<description><![CDATA[If you have added parameter &#8220;wmode&#8221; (e.g. opaque, transparent) into the flash application object tag in the HTML. You may not able to type non-English character into the text input of the flex application by using non-IE browsers. &#60;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="flashapp" width="100%" height="500" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&#62; &#60;param name="movie" value="teacher.swf" /&#62; &#60;param name="quality" value="high" /&#62; &#60;param name="bgcolor" value="#869ca7" [...]]]></description>
			<content:encoded><![CDATA[<p>If you have added parameter &#8220;wmode&#8221; (e.g. opaque, transparent) into the flash application object tag in the HTML. You may not able to type non-English character into the text input of the flex application by using non-IE browsers.</p>
<p><code> </code></p>
<p><code></p>
<blockquote><p><span style="white-space: pre;"> </span>&lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"</p>
<p><span style="white-space: pre;"> </span>id="flashapp" width="100%" height="500"</p>
<p><span style="white-space: pre;"> </span>codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;param name="movie" value="teacher.swf" /&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;param name="quality" value="high" /&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;param name="bgcolor" value="#869ca7" /&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;param name="allowScriptAccess" value="sameDomain" /&gt;</p>
<p><span style="white-space: pre;"> </span><strong><span style="color: #800000;">&lt;param name="wmode" value="opaque" /&gt;</span></strong></p>
<p><span style="white-space: pre;"> </span>&lt;embed src="teacher.swf" quality="high" bgcolor="#869ca7"</p>
<p><span style="white-space: pre;"> </span>width="100%" height="500" name="flashapp" align="middle"</p>
<p><span style="white-space: pre;"> </span>play="true"</p>
<p><span style="white-space: pre;"> </span>loop="false"</p>
<p><span style="white-space: pre;"> </span>quality="high"</p>
<p><span style="white-space: pre;"> </span>allowScriptAccess="sameDomain"</p>
<p><span style="white-space: pre;"> </span><strong><span style="color: #800000;">wmode="opaque"</span></strong></p>
<p><span style="white-space: pre;"> </span>type="application/x-shockwave-flash"</p>
<p><span style="white-space: pre;"> </span>pluginspage="http://www.adobe.com/go/getflashplayer"&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;/embed&gt;</p>
<p><span style="white-space: pre;"> </span>&lt;/object&gt;</p></blockquote>
<p></code></p>
<p>To solve this issue, you can simply remove the wmode paramater. And you can type Chinese normally.<br />
References:</p>
<p><a href="http://blog.rive.be/2009/03/25/flash-wmodetransparent-breaks-textinput-field/">http://blog.rive.be/2009/03/25/flash-wmodetransparent-breaks-textinput-field/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/08/flash-flex-application-cant-type-chinese-character/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using hand cursor in Flex Text control</title>
		<link>http://way.cubeforge.net/blog/2009/07/using-hand-cursor-in-flex-text-control/</link>
		<comments>http://way.cubeforge.net/blog/2009/07/using-hand-cursor-in-flex-text-control/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 09:37:01 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[handcursor]]></category>
		<category><![CDATA[Text]]></category>
		<category><![CDATA[useHandCursor]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=490</guid>
		<description><![CDATA[By default, the flex application can show hand cursor when rollover by enabling useHandCursor and buttonMode properties. However, in Text control, the cursor will not change to hand even you set the selectable = false. The tricky thing is that we have to set its mouseChildren to false also. &#60;mx:Text useHandCursor=&#8221;true&#8221; buttonMode=&#8221;true&#8221; mouseChildren=&#8221;false&#8221; /&#62; mouseChildren [...]]]></description>
			<content:encoded><![CDATA[<p>By default, the flex application can show hand cursor when rollover by enabling <code>useHandCursor</code> and <code>buttonMode</code> properties.</p>
<p>However, in Text control, the cursor will not change to hand even you set the <code>selectable = false</code>. The tricky thing is that we have to set its <code>mouseChildren</code> to false also.</p>
<blockquote><p>&lt;mx:Text useHandCursor=&#8221;true&#8221; buttonMode=&#8221;true&#8221; <span style="color: #ff0000;">mouseChildren=&#8221;false&#8221;</span> /&gt;</p></blockquote>
<p><strong>mouseChildren </strong>- Determines whether or not the children of the object are mouse enabled. If an object is mouse enabled, a user can interact with it by using a mouse. The default is true.</p>
<p><a href="http://www.mail-archive.com/flexcoders@yahoogroups.com/msg29930.html" target="_blank">http://www.mail-archive.com/flexcoders@yahoogroups.com/msg29930.html</a></p>
<p><a href="http://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObjectContainer.html#mouseChildren">http://livedocs.adobe.com/flex/201/langref/flash/display/DisplayObjectContainer.html#mouseChildren</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/07/using-hand-cursor-in-flex-text-control/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Creating Custom Flex Component</title>
		<link>http://way.cubeforge.net/blog/2009/06/creating-custom-flex-component/</link>
		<comments>http://way.cubeforge.net/blog/2009/06/creating-custom-flex-component/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 04:56:54 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Custom Component]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=470</guid>
		<description><![CDATA[Here is a very simple and useful guide for beginner to follow if you are planning to create custom component in Flex. It mentions the logic and lifecycle how the flex / flash runs. http://labs.realeyesmedia.com/labs/downloads/techBriefs/AdvancedCustomComponents_20071102.pdf]]></description>
			<content:encoded><![CDATA[<p>Here is a very simple and useful guide for beginner to follow if you are planning to create custom component in Flex.</p>
<p>It mentions the logic and lifecycle how the flex / flash runs.</p>
<p><a href="http://labs.realeyesmedia.com/labs/downloads/techBriefs/AdvancedCustomComponents_20071102.pdf">http://labs.realeyesmedia.com/labs/downloads/techBriefs/AdvancedCustomComponents_20071102.pdf</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/06/creating-custom-flex-component/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Flex Diagram</title>
		<link>http://way.cubeforge.net/blog/2009/06/great-flex-diagram/</link>
		<comments>http://way.cubeforge.net/blog/2009/06/great-flex-diagram/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 02:31:54 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Graph]]></category>
		<category><![CDATA[Kap Lab]]></category>
		<category><![CDATA[Reporting]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=467</guid>
		<description><![CDATA[Today I found Kap Lab provides a lot of great Flex components, especially for those reporting graphs. The most amazing things is that it is all free for non-commercial use !! http://lab.kapit.fr/display/kaplabhome/Home]]></description>
			<content:encoded><![CDATA[<p>Today I found Kap Lab provides a lot of great Flex components, especially for those reporting graphs. The most amazing things is that it is all free<strong> for non-commercial use</strong> !!</p>
<p><a href="http://lab.kapit.fr/display/kaplabhome/Home">http://lab.kapit.fr/display/kaplabhome/Home</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/06/great-flex-diagram/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Flex Security Error #2148</title>
		<link>http://way.cubeforge.net/blog/2009/06/flex-security-error-2148/</link>
		<comments>http://way.cubeforge.net/blog/2009/06/flex-security-error-2148/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:56:40 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[#2148]]></category>
		<category><![CDATA[Security Error]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=462</guid>
		<description><![CDATA[When you want to test the flex application to access local resources without hosting it on web server or in flex builder&#8217;s debug folder, the security error will be prompted. Instead, we can add the &#8220;-use-network=false&#8221; parameter to the compiler option of the flex project to avoid such error. However, the application cannot access Internet [...]]]></description>
			<content:encoded><![CDATA[<p>When you want to test the flex application to access local resources without hosting it on web server or in flex builder&#8217;s debug folder, the security error will be prompted.</p>
<p>Instead, we can add the &#8220;-use-network=false&#8221; parameter to the compiler option of the flex project to avoid such error.</p>
<p>However, the application cannot access Internet resources anymore once we add this parameter. Another security error will be prompted in this case.</p>
<p><a href="http://blog.mandalatv.net/?p=334">http://blog.mandalatv.net/?p=334</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/06/flex-security-error-2148/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex MultiLine FormItem</title>
		<link>http://way.cubeforge.net/blog/2009/06/flex-multiline-formitem/</link>
		<comments>http://way.cubeforge.net/blog/2009/06/flex-multiline-formitem/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 02:59:35 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[FormItem]]></category>
		<category><![CDATA[multiline]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=460</guid>
		<description><![CDATA[This is a very good control to break the form item label into multiple lines. I found it from Google by Nick bilyk. http://www.nbilyk.com/multiline-formitem-label http://www.nbilyk.com/examples/betterFormItemExample/index.html]]></description>
			<content:encoded><![CDATA[<p>This is a very good control to break the form item label into multiple lines.</p>
<p>I found it from Google by Nick bilyk.</p>
<p><a href="http://www.nbilyk.com/multiline-formitem-label">http://www.nbilyk.com/multiline-formitem-label</a></p>
<p><a href="http://www.nbilyk.com/examples/betterFormItemExample/index.html">http://www.nbilyk.com/examples/betterFormItemExample/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/06/flex-multiline-formitem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Multiline TabNavigator #2</title>
		<link>http://way.cubeforge.net/blog/2009/04/multiline-tabnavigator-2/</link>
		<comments>http://way.cubeforge.net/blog/2009/04/multiline-tabnavigator-2/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:28:29 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[multiline]]></category>
		<category><![CDATA[Multiline TabNavigator]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabbar]]></category>
		<category><![CDATA[tabnavigator]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=413</guid>
		<description><![CDATA[MultiLineTab.as package controls { import flash.display.DisplayObject; import flash.text.TextLineMetrics; import mx.controls.tabBarClasses.Tab; import mx.core.IFlexDisplayObject; import mx.core.UITextField; import mx.core.mx_internal; use namespace mx_internal; public class MultiLineTab extends Tab { public function MultiLineTab() { super(); } override protected function createChildren():void { if (!textField) { textField = new UITextField(); textField.styleName = this; addChild(DisplayObject(textField)); } super.createChildren(); textField.multiline = true; textField.wordWrap = true; [...]]]></description>
			<content:encoded><![CDATA[<p>MultiLineTab.as<br />
<code>package controls<br />
{<br />
import flash.display.DisplayObject;<br />
import flash.text.TextLineMetrics;<br />
import mx.controls.tabBarClasses.Tab;<br />
import mx.core.IFlexDisplayObject;<br />
import mx.core.UITextField;<br />
import mx.core.mx_internal;<br />
use namespace mx_internal;<br />
public class MultiLineTab extends Tab<br />
{<br />
public function MultiLineTab()<br />
{<br />
super();<br />
}<br />
override protected function createChildren():void<br />
{<br />
if (!textField)<br />
{<br />
textField = new UITextField();<br />
textField.styleName = this;<br />
addChild(DisplayObject(textField));<br />
}<br />
super.createChildren();<br />
textField.multiline = true;<br />
textField.wordWrap = true;<br />
}<br />
override protected function measure():void<br />
{<br />
if (!isNaN(explicitWidth))<br />
{<br />
var tempIcon:IFlexDisplayObject = getCurrentIcon();<br />
var w:Number = explicitWidth;<br />
if (tempIcon)<br />
w -= tempIcon.width + getStyle("horizontalGap") + getStyle("paddingLeft") + getStyle("paddingRight");<br />
textField.width = w;<br />
}<br />
super.measure();<br />
}<br />
override public function measureText(s:String):TextLineMetrics<br />
{<br />
textField.text = s;<br />
var lineMetrics:TextLineMetrics = textField.getLineMetrics(0);<br />
lineMetrics.width = textField.textWidth + 4;<br />
lineMetrics.height = textField.textHeight + 4;<br />
return lineMetrics;<br />
}<br />
override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void<br />
{<br />
super.updateDisplayList(unscaledWidth,unscaledHeight);<br />
if (this.getCurrentIcon())<br />
{<br />
this.getCurrentIcon().y = 2;<br />
}<br />
}<br />
}<br />
}</code><br />
MultiLineTabBar.as<br />
<code>package controls<br />
{<br />
import mx.controls.TabBar;<br />
import mx.core.ClassFactory;<br />
import mx.core.mx_internal;<br />
use namespace mx_internal;<br />
public class MultiLineTabBar extends TabBar<br />
{<br />
public function MultiLineTabBar()<br />
{<br />
super ();<br />
navItemFactory = new ClassFactory (MultiLineTab);Â<br />
}<br />
}<br />
}</code><br />
MultiLineTabNavigator.as<br />
<code>package controls<br />
{<br />
import flash.display.DisplayObject;<br />
import mx.containers.TabNavigator;<br />
public class MultiLineTabNavigator extends TabNavigator<br />
{<br />
public function MultiLineTabNavigator()<br />
{<br />
super();<br />
}<br />
override protected function createChildren():void<br />
{<br />
if (!tabBar)<br />
{<br />
tabBar = new MultiLineTabBar();<br />
tabBar.name = "tabBar";<br />
tabBar.focusEnabled = false;<br />
tabBar.styleName = this;Â<br />
tabBar.setStyle("borderStyle", "none");<br />
tabBar.setStyle("paddingTop", 0);<br />
tabBar.setStyle("paddingBottom", 0);<br />
rawChildren.addChild(tabBar);<br />
}<br />
super.createChildren();<br />
}<br />
override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void<br />
{<br />
super.updateDisplayList(unscaledWidth,unscaledHeight);<br />
}<br />
}<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/04/multiline-tabnavigator-2/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Corelib</title>
		<link>http://way.cubeforge.net/blog/2009/04/corelib/</link>
		<comments>http://way.cubeforge.net/blog/2009/04/corelib/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 15:51:49 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Corelib]]></category>
		<category><![CDATA[utilities]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=408</guid>
		<description><![CDATA[CORELIBæœ‰ä¸€å †UTILITIES &#8230; æœ‰é™£æ™‚éƒ½å¹¾å¥½ç”¨~~ http://code.google.com/p/as3corelib/ http://weblogs.macromedia.com/as_libraries/docs/corelib/com/adobe/utils/package-detail.html]]></description>
			<content:encoded><![CDATA[<p>CORELIBæœ‰ä¸€å †UTILITIES &#8230; æœ‰é™£æ™‚éƒ½å¹¾å¥½ç”¨~~</p>
<p><a href="http://code.google.com/p/as3corelib/">http://code.google.com/p/as3corelib/</a></p>
<p><a href="http://weblogs.macromedia.com/as_libraries/docs/corelib/com/adobe/utils/package-detail.html">http://weblogs.macromedia.com/as_libraries/docs/corelib/com/adobe/utils/package-detail.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/04/corelib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Multiline TabNavigator</title>
		<link>http://way.cubeforge.net/blog/2009/04/flex-multiline-tabnavigator/</link>
		<comments>http://way.cubeforge.net/blog/2009/04/flex-multiline-tabnavigator/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 15:50:19 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[multiline]]></category>
		<category><![CDATA[tab]]></category>
		<category><![CDATA[tabbar]]></category>
		<category><![CDATA[tabnavigator]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=404</guid>
		<description><![CDATA[Currently, if your label text is too long. The text will be truncated as &#8220;&#8230;&#8221; in the tab. However, there are very few posts talking about how to build a multiline tavnavigator in flex. And the flex API does not provide a style and properties to do such styling. We have to create custom classes. [...]]]></description>
			<content:encoded><![CDATA[<p>Currently, if your label text is too long. The text will be truncated as &#8220;&#8230;&#8221; in the tab. However, there are very few posts talking about how to build a multiline tavnavigator in flex. And the flex API does not provide a style and properties to do such styling. We have to create custom classes.</p>
<p><strong><span style="text-decoration: underline;">Step 1</span></strong>: create a custom class extends the original mx.controls.tabclasses.tab class, and break the text of the tab into multiline. The steps are exactly the same as creating a multiline button (Creating multiline button:Â <a href="http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html">http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html</a>). It is because tab class itself extends Button class originally.</p>
<p><strong><span style="text-decoration: underline;">Step 2:</span></strong> create a custom class extends mx.controls.tabBar. and change the tab class to your custom tab class created in Step 1 by following code.Â </p>
<blockquote><p><em>navItemFactory</em>Â = new ClassFactory( CustomTab );Â </p></blockquote>
<p><strong><span style="text-decoration: underline;">Step 3:</span><span style="font-weight: normal;">Â create a custom class extends mx.containers.tabNavigator and change the tabBar into your custom tabBar class created in Step 2.</span></strong></p>
<blockquote><p><strong><span style="font-weight: normal;">override protected function createChildren ():void</span></strong></p>
<p><strong><span style="font-weight: normal;">{</span></strong></p>
<p><strong><span style="font-weight: normal;">Â Â  Â  Â  Â  Â if (!tabBar) {</span></strong></p>
<p><strong><span style="font-weight: normal;">Â Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  tabBar = new CustomTabBar();</span></strong></p>
<p><strong><span style="font-weight: normal;">Â Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  tabBar.set &#8230;..Â </span></strong></p>
<p><strong><span style="font-weight: normal;">Â Â  Â  Â  Â  Â }</span></strong></p>
<p>}</p></blockquote>
<p>It Â is really not that easy to have a multiline tabNavigator. ~I will attach the sample source code later.</p>
<p>Reference:</p>
<p><a href="http://www.remotesynthesis.com/post.cfm/using-custom-tab-classes-with-the-flex-tabbar">http://www.remotesynthesis.com/post.cfm/using-custom-tab-classes-with-the-flex-tabbar</a></p>
<p><a href="http://wiki.mediaboxtraining.com/doku.php/tutorials:flex:tabcontrol">http://wiki.mediaboxtraining.com/doku.php/tutorials:flex:tabcontrol</a></p>
<p><a href="http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html">http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html</a></p>
<p><a href="http://www.mail-archive.com/flexcoders@yahoogroups.com/msg106481.html">http://www.mail-archive.com/flexcoders@yahoogroups.com/msg106481.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/04/flex-multiline-tabnavigator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

