                    <?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/category/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>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>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>
		<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>
		<item>
		<title>Copying an ArrayCollection</title>
		<link>http://way.cubeforge.net/blog/2008/08/copying-an-arraycollection/</link>
		<comments>http://way.cubeforge.net/blog/2008/08/copying-an-arraycollection/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 09:03:00 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ArrayCollection]]></category>
		<category><![CDATA[Flex Note]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=246</guid>
		<description><![CDATA[There are multiple ways to copy an arraycollection .. 1. ac1 = ac2;2. ac1 = new ArrayCollection (ac2.source);3. ac1 = ObjectUtil.copy (ac2) as ArrayCollection; Method 1 copy the ac by reference.Method 2 will create an new ac instance, but the value (array) inside two ac are still the same.Method 3 will create completely two different [...]]]></description>
			<content:encoded><![CDATA[<p>There are multiple ways to copy an arraycollection ..</p>
<p>1.  ac1 = ac2;<br />2. ac1 = new ArrayCollection (ac2.source);<br />3. ac1 = ObjectUtil.copy (ac2) as ArrayCollection;</p>
<p>Method 1 copy the ac by reference.<br />Method 2 will create an new ac instance, but the value (array) inside two ac are still the same.<br />Method 3 will create completely two different objects.</p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2008/08/copying-an-arraycollection/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dynamic source of Image control</title>
		<link>http://way.cubeforge.net/blog/2008/08/dynamic-source-of-image-control/</link>
		<comments>http://way.cubeforge.net/blog/2008/08/dynamic-source-of-image-control/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 08:57:00 +0000</pubDate>
		<dc:creator>Way</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex Note]]></category>
		<category><![CDATA[Image]]></category>

		<guid isPermaLink="false">http://way.cubeforge.net/blog/?p=245</guid>
		<description><![CDATA[In order to change the image source dynamically instead of creating multiple image instances, we could make use of [Embed] tag as follows: [Embed(source="a.png")]private var _src_a:Class;[Embed(source="b.png")]private var _src_b:Class; _img = new Image ();if ( &#8230; ) { _img.source = _src_a;} else { _img.source = _src_b;} http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#38;file=00000968.html]]></description>
			<content:encoded><![CDATA[<p>In order to change the image source  dynamically instead of creating multiple image instances, we could make use of [Embed] tag as follows:</p>
<p>[Embed(source="a.png")]<br />private var _src_a:Class;<br />[Embed(source="b.png")]<br />private var _src_b:Class;</p>
<p>_img = new Image ();<br />if ( &#8230; ) {<br />   _img.source = _src_a;<br />} else {<br />   _img.source = _src_b;<br />}</p>
<p><a href="http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000968.html">http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000968.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://way.cubeforge.net/blog/2008/08/dynamic-source-of-image-control/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

