                    <?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; ActionScript</title>
	<atom:link href="http://way.cubeforge.net/blog/tag/actionscript/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>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>ActionScript 2 External Interface</title>
		<link>http://way.cubeforge.net/blog/2009/04/actionscript-2-external-interface/</link>
		<comments>http://way.cubeforge.net/blog/2009/04/actionscript-2-external-interface/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 09:28:53 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS 2.0]]></category>
		<category><![CDATA[External Interface]]></category>
		<category><![CDATA[Flash 8]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=393</guid>
		<description><![CDATA[前幾日打算寫個flash button 點知office得flash 8, 要用actionscript 2 &#8230; 真係幾挑戰..因為自己未用過8 + as 2 當初諗住好似好簡單既野.. 用external interface call js 點知攪左好耐都唔得.. 最後搵到個site 先幫到我.. 要將 ExternalInterface.call(); 改做 flash.external.ExternalInterface.call(); 先用到.. 但係我真係唔明 =.=  唔通佢有兩個api 都係叫 ExternalInterface ?!  算啦&#8230;應該都唔會點用as 2 架啦.. Reference: http://www.psyked.co.uk/actionscript/externalinterface-not-working-in-firefox.htm]]></description>
			<content:encoded><![CDATA[<p>前幾日打算寫個flash button 點知office得flash 8, 要用actionscript 2 &#8230; 真係幾挑戰..因為自己未用過8 + as 2</p>
<p>當初諗住好似好簡單既野.. 用external interface call js 點知攪左好耐都唔得..</p>
<p>最後搵到個site 先幫到我..</p>
<p>要將 <code>ExternalInterface.call(); </code> 改做 <code>flash.external.ExternalInterface.call();</code> 先用到.. 但係我真係唔明 =.= </p>
<p>唔通佢有兩個api 都係叫 ExternalInterface ?!  算啦&#8230;應該都唔會點用as 2 架啦..</p>
<p>Reference:</p>
<p><a href="http://www.psyked.co.uk/actionscript/externalinterface-not-working-in-firefox.htm">http://www.psyked.co.uk/actionscript/externalinterface-not-working-in-firefox.htm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2009/04/actionscript-2-external-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

