<?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>Li Guoliang &#187; Flex</title>
	<atom:link href="http://liguoliang.com/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://liguoliang.com</link>
	<description>ActionScript Flex Java JEE PHP...</description>
	<lastBuildDate>Mon, 21 May 2012 17:04:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Apache Flex: MXML or ActionScript ?</title>
		<link>http://liguoliang.com/2012/apache-flex-mxml-or-actionscript/</link>
		<comments>http://liguoliang.com/2012/apache-flex-mxml-or-actionscript/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 13:59:08 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ApacheFlex]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2246</guid>
		<description><![CDATA[Deciding to create components in MXML or ActionScript
&#160;
One of the first decisions that you must make when creating custom components is deciding<p class='read-more'><a href='http://liguoliang.com/2012/apache-flex-mxml-or-actionscript/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<h2>Deciding to create components in MXML or ActionScript</h2>
<p>&nbsp;</p>
<blockquote><p>One of the first decisions that you must make when creating custom components is deciding whether to write<br />
them in MXML or in ActionScript. Ultimately, it is the requirements of your application that determine how you<br />
develop your custom component.<br />
Some basic guidelines include the following:</p>
<p><em><span style="font-size: x-small;">•MXML components and ActionScript components both define new ActionScript classes.<br />
•Almost anything that you can do in a custom ActionScript custom component, you can also do in a custom MXML component. However, for simple components, such as components that modify the behavior of an existing component or add a basic feature to an existing component, it is simpler and faster to create them in MXML.<br />
•When your new component is a composite component that contains other components, and you can express the positions and sizes of those other components using one of the Flex layout containers, you should use MXML to define your component.<br />
•To modify the behavior of the component, such as the way a container lays out its children, use ActionScript.<br />
•To create a visual component by creating a subclass from UIComponent, use ActionScript.<br />
•To create a nonvisual component, such as a formatter, validator, or effect, use ActionScript.<br />
•To add logging support to your control, use ActionScript. For more information, see “Logging” on page 227 in Building and Deploying Adobe Flex 3 Applications.</span></em></p></blockquote>
<p>Flex3 官方文档中如上释疑. 2010年我参加Flex Developer Day时, 有开发者提问国内是否有大型企业应用实例? 未得到正面回答. 倒是群硕的团队还上台张扬了一把, 他们的项目大约是奥运时CCTV直播网站.</p>
<p>其实即便国内有大型的企业应用, 也不一定能获得足够价值的经验.</p>
<p>07年底开始做的教育应用, 大致有120W行代码, 其中有60%+的为AS代码, 除了入口文件及部分复杂UI使用MXML之外, 清一色都是AS代码, 所有的UI都小心谨慎的创建, 销毁. 在10年的DevDay时, 坐在我旁边的某研发他们也是纯AS.</p>
<p>几年过去了, Flex贡献给了Apache, Flex也已经4.6了, 接触的代码多了, 习惯了清纯的AS代码, 当满篇都是MXML标签时, 我不淡定了.</p>
<p>思想斗争良久, 到底孰优孰劣? 在多数common的情况下, 几乎不分上下. 我觉得AS代码更优雅更易读, 可人家说了: 我们可以Design, 不用代码, 一眼就看出来了&#8230;:(</p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/02/201226212008.png"><img style="display: inline; border: 0px;" title="2012-2-6 21-20-08" src="http://liguoliang.com/wp-content/uploads/2012/02/201226212008_thumb.png" alt="2012-2-6 21-20-08" width="644" height="402" border="0" /></a></p>
<p>如上View, 假如我们只用MXML或只用AS来实现, 似乎看不出明显差异来, 其实相比选择编程方式, 可能对<strong>组件/Class的划分可能更加重要.</strong></p>
<p>不论用MXML还是AS, Class设计好更加关键:</p>
<p>1.1.1 可以设计成一个Common的组件;</p>
<p>1.1 可以作为一个组合的UserList</p>
<p>2.1/2.2  作为显示用户基本信息的组件;</p>
<p>这样划分, 不论MXML还是AS都可以很好的降低耦合, 更可重用, 但不论如何, 我还是喜欢干净的AS代码.</p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/apache-flex-mxml-or-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Subversion for Eclipse Indigo3.7/Helios3.6/Galileo3.5 Eclipse安装Subversion插件</title>
		<link>http://liguoliang.com/2012/install-eclipse-subversion/</link>
		<comments>http://liguoliang.com/2012/install-eclipse-subversion/#comments</comments>
		<pubDate>Sat, 17 Mar 2012 08:02:58 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2315</guid>
		<description><![CDATA[Subversive installation instructions
<a href="https://ura-cn.siemens.com/,DanaInfo=.acorho57E8CJnzBCEP90x6z9DXA4I,SSL+redir.aspx?C=e74ab11351ab47238f13f6506e314de0&#38;URL=http%3a%2f%2fwww.eclipse.org%2fsubversive%2fdocumentation%2fgettingStarted%2faboutSubversive%2finstall.php">http://www.eclipse.org/subversive/documentation/gettingStarted/aboutSubversive/install.php</a>
Update sites:

Indigo <p class='read-more'><a href='http://liguoliang.com/2012/install-eclipse-subversion/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Subversive installation instructions
<p><a href="https://ura-cn.siemens.com/,DanaInfo=.acorho57E8CJnzBCEP90x6z9DXA4I,SSL+redir.aspx?C=e74ab11351ab47238f13f6506e314de0&amp;URL=http%3a%2f%2fwww.eclipse.org%2fsubversive%2fdocumentation%2fgettingStarted%2faboutSubversive%2finstall.php">http://www.eclipse.org/subversive/documentation/gettingStarted/aboutSubversive/install.php</a><br />
<h3><b>Update sites:</b></h3>
<h3>
<h3>Indigo 3.7</h3>
</h3>
<p>Update Site is a part of Indigo Update Site. Look at Help &gt; Install New Software&#8230; &gt; select Indigo &#8211; http://download.eclipse.org/releases/indigo &gt; Collaboration Tools</p>
<h3>
<h3>Helios 3.6</h3>
</h3>
<p>Update Site is a part of Helios Update Site. Look at Help &gt; Install New Software&#8230; &gt; select Helios &#8211; http://download.eclipse.org/releases/helios &gt; Collaboration Tools</p>
<h3><strong>Galileo 3.5</strong></h3>
<h3></h3>
<p>Try: <a href="https://ura-cn.siemens.com/,DanaInfo=.acorho57E8CJnzBCEP90x6z9DXA4I,SSL+redir.aspx?C=e74ab11351ab47238f13f6506e314de0&amp;URL=http%3a%2f%2fdownload.eclipse.org%2freleases%2fgalileo">http://download.eclipse.org/releases/galileo</a>&gt; Collaboration Tools</p>
<p>Or: <a href="http://subclipse.tigris.org/update_1.6.x">http://subclipse.tigris.org/update_1.6.x</a></p>
<p>&nbsp;</p>
<p>more info: <a href="https://ura-cn.siemens.com/,DanaInfo=.acorho57E8CJnzBCEP90x6z9DXA4I,SSL+redir.aspx?C=e74ab11351ab47238f13f6506e314de0&amp;URL=http%3a%2f%2fwww.eclipse.org%2fsubversive%2fdownloads.php">http://www.eclipse.org/subversive/downloads.php</a></p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/install-eclipse-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一点关于Flex的牢骚</title>
		<link>http://liguoliang.com/2012/talking-about-flex/</link>
		<comments>http://liguoliang.com/2012/talking-about-flex/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 15:16:17 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Apache Flex]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2312</guid>
		<description><![CDATA[2月份Adobe有发布3个flash平台下的白皮书: <a href="http://www.adobe.com/devnet/flashplatform/whitepapers.html">http://www.adobe.com/devnet/flashplatform/whitepapers.html</a>
<a href="http://liguoliang.com/wp-content/uploads/2012/03/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb2.png" width="704" height="328"/></a>
之前有看到微博上转来转去的flash runtime白皮书. 我没有太多兴趣参与他们的讨论, 也只是今天才有空扫了两眼&#82<p class='read-more'><a href='http://liguoliang.com/2012/talking-about-flex/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>2月份Adobe有发布3个flash平台下的白皮书: <a href="http://www.adobe.com/devnet/flashplatform/whitepapers.html">http://www.adobe.com/devnet/flashplatform/whitepapers.html</a></p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/03/image2.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb2.png" width="704" height="328"></a></p>
<p>之前有看到微博上转来转去的flash runtime白皮书. 我没有太多兴趣参与他们的讨论, 也只是今天才有空扫了两眼&#8221;Adobe&#8217;s view of Flex and its commitments to Flex in the future&#8221;</p>
<p>07年底开始接触使用Flex, 08年开始做项目, 掐指一算, 四五年过去了. 记得最开始看的一本书是打印出来的&lt;&lt; <a href="http://www.amazon.com/Programming-Flex-Comprehensive-Creating-Applications/dp/059652689X" target="_blank">Programming Flex 2: The Comprehensive Guide to Creating Rich Internet Applications with Adobe Flex</a>&gt;&gt; 光阴似箭, 由2及3, 直到如今的4.6;</p>
<p>上个月公司采购了一批FlashBuilder4.6的授权, 相比4.0, 4.6需要更高的配置, 无奈之下, 我们纷纷转回4.0.&nbsp; 其实从4.0开始, 我就一直不断的抱怨, 甚至有很多次对着电脑骂娘, 但是这都无济于事, 骂娘也得继续用它.</p>
<p>Flex的build效率也不敢恭维, 平日工作里, 我们需要暂定若干个一分钟来等待一个小module的编译. </p>
<p>大多时候, 我觉得Flex是个不错的框架, 不论对于企业级应用还是面向消费者的软件都是不错的选择. 虽然Flex有很多不足之处, 但并不能掩盖其在RIA领域的地位. Flex贡献给Apache后, 有很多人开始摇摆不定, 但我并不觉得HTML5能在企业应用领域盖得过Flex.</p>
<p>我对Flex的社区, 尤其是中文社区, 从来都没有丝毫的归属感.&nbsp; 太多的游戏, flash, 很少很少看到有人讨论企业级应用. 多数的活动都与我无关. 微博上的帖子也是flash, 3D, gaming. 似乎Flex正在远去, 大家更喜欢用flash这个词语. 很多猎头向我抱怨, 为什么懂Flex的人这么难找? 于此对应的是, 去年有一个国内AS大站的&#8217;运营&#8217;联系我, 要给我介绍一个Flex的工作: 公司是一家房地产公司. 可能是做3D效果.对于这样的机会, 我只能一笑而过.</p>
<p>春天正在北上, 我继续一笑而过. </p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/talking-about-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex: 选用XML而非Class表述数据的蛋疼问题</title>
		<link>http://liguoliang.com/2012/flex-%e9%80%89%e7%94%a8xml%e8%80%8c%e9%9d%9eclass%e8%a1%a8%e8%bf%b0%e6%95%b0%e6%8d%ae%e7%9a%84%e8%9b%8b%e7%96%bc%e9%97%ae%e9%a2%98/</link>
		<comments>http://liguoliang.com/2012/flex-%e9%80%89%e7%94%a8xml%e8%80%8c%e9%9d%9eclass%e8%a1%a8%e8%bf%b0%e6%95%b0%e6%8d%ae%e7%9a%84%e8%9b%8b%e7%96%bc%e9%97%ae%e9%a2%98/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 16:06:43 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex蛋疼]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2298</guid>
		<description><![CDATA[由于路线不同，可能某些flex项目会完全抛弃Class而仅使用xml描述数据。突然间, 没有了对象, 满眼所见的都是XML.

轻快吗? 流畅吗? 清晰易懂吗? 我抱着试试看的态度开始接纳不太熟悉的世界.

1. 完全没有代码提示, 代码基本靠手； 
2. 不论怎么写, 在编译时都不会有问题, 漫长<p class='read-more'><a href='http://liguoliang.com/2012/flex-%e9%80%89%e7%94%a8xml%e8%80%8c%e9%9d%9eclass%e8%a1%a8%e8%bf%b0%e6%95%b0%e6%8d%ae%e7%9a%84%e8%9b%8b%e7%96%bc%e9%97%ae%e9%a2%98/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>由于路线不同，可能某些flex项目会完全抛弃Class而仅使用xml描述数据。突然间, 没有了对象, 满眼所见的都是XML.</p>
</p>
<p>轻快吗? 流畅吗? 清晰易懂吗? 我抱着试试看的态度开始接纳不太熟悉的世界.</p>
</p>
<p>1. 完全没有代码提示, 代码基本靠手； </p>
<p>2. 不论怎么写, 在编译时都不会有问题, 漫长的编译之后发现细小的笔误才, 蛋疼的感觉滚滚而来.</p>
<p>3. 如果一个method接受一个XML的参数, 该如何写注释? 你不把xml范例写上, 别人知道你要干球??</p>
<p>4. 没有Class, 我要重写下toString()该怎么写? 我要写个只读method该写到哪?</p>
<p>5. 重构呢? search + 替换?</p>
</p>
<p>xml的易错性 + Flex编译耗时久 = 蛋疼.</p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/flex-%e9%80%89%e7%94%a8xml%e8%80%8c%e9%9d%9eclass%e8%a1%a8%e8%bf%b0%e6%95%b0%e6%8d%ae%e7%9a%84%e8%9b%8b%e7%96%bc%e9%97%ae%e9%a2%98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using XML filter in ActionScript &#8211; Flex中过滤XML</title>
		<link>http://liguoliang.com/2012/using-xml-filter-in-actionscript/</link>
		<comments>http://liguoliang.com/2012/using-xml-filter-in-actionscript/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 14:44:57 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScirpt]]></category>
		<category><![CDATA[ApacheFlex]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2293</guid>
		<description><![CDATA[我一直不喜欢在AS中频繁的操作XML, 但没办法, 最近所有的data都是来自于XML, 没有任何ValueObject, 清一色的XML.
把把都得翻书找手册 <img src='http://liguoliang.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   弱到爆
&#160;
<a href="http://liguoliang.com/wp-content/uploads/2012/03/image.png"><img style="display: inline; border-width: 0px;" title="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb.png" alt="image" width="657" height="362" border="0" /></a>
Trace到的结果:
<a href="http://liguoliang.com/wp-content/uploads/2012/03/image1.png"><img style="display: inline; border: 0px;" title="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb1.png" alt="image" width="209" height="266" border="0" /></a>


----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, </a><p class='read-more'><a href='http://liguoliang.com/2012/using-xml-filter-in-actionscript/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>我一直不喜欢在AS中频繁的操作XML, 但没办法, 最近所有的data都是来自于XML, 没有任何ValueObject, 清一色的XML.</p>
<p>把把都得翻书找手册 <img src='http://liguoliang.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   弱到爆</p>
<p>&nbsp;</p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/03/image.png"><img style="display: inline; border-width: 0px;" title="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb.png" alt="image" width="657" height="362" border="0" /></a></p>
<p>Trace到的结果:</p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/03/image1.png"><img style="display: inline; border: 0px;" title="image" src="http://liguoliang.com/wp-content/uploads/2012/03/image_thumb1.png" alt="image" width="209" height="266" border="0" /></a></p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/using-xml-filter-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript: conversion to Boolean</title>
		<link>http://liguoliang.com/2012/actionscript-conversion-to-boolean/</link>
		<comments>http://liguoliang.com/2012/actionscript-conversion-to-boolean/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 11:46:54 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScirpt]]></category>
		<category><![CDATA[ApacheFlex]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2287</guid>
		<description><![CDATA[The following table summarizes the results of casting to the Boolean data type from other data types:



<strong>Data type or value</strong>
<strong>Result of conversion to Bo</strong><p class='read-more'><a href='http://liguoliang.com/2012/actionscript-conversion-to-boolean/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>The following table summarizes the results of casting to the Boolean data type from other data types:</p>
<table border="0" cellspacing="0" cellpadding="2" width="679">
<tbody>
<tr>
<td valign="top" width="200"><strong>Data type or value</strong></td>
<td valign="top" width="477"><strong>Result of conversion to Boolean</strong></td>
</tr>
<tr>
<td valign="top" width="200">String</td>
<td valign="top" width="477"><samp>false </samp>if the value is <samp>null </samp>or the empty string (<samp> &#8220;&#8221; </samp>); <samp>true </samp>otherwise.</td>
</tr>
<tr>
<td valign="top" width="200">null</td>
<td valign="top" width="477">false</td>
</tr>
<tr>
<td valign="top" width="200">Number, int or uint</td>
<td valign="top" width="477"><samp>false </samp>if the value is <samp>NaN </samp>or 0; <samp>true </samp>otherwise.</td>
</tr>
<tr>
<td valign="top" width="200">Object</td>
<td valign="top" width="477"><samp>false </samp>if the instance is <samp>null </samp>; <samp>true </samp>otherwise.</td>
</tr>
</tbody>
</table>
<p>ref:<a href="http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html">http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7f87.html</a></p>
<p>Note: when you convert a string to boolean, remeber to trim the string first.</p>
<p>and this is a capture from &lt;&lt;Essential ActionScript 3.0&gt;&gt;:</p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/02/image3.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/02/image_thumb4.png" width="584" height="418"></a></p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/actionscript-conversion-to-boolean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check FlashPlayer SharedObject setting using ActionScript / 使用AS检查FP本地存储</title>
		<link>http://liguoliang.com/2012/check-flashplayer-sharedobject-setting-using-actionscript-%e4%bd%bf%e7%94%a8as%e6%a3%80%e6%9f%a5fp%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8/</link>
		<comments>http://liguoliang.com/2012/check-flashplayer-sharedobject-setting-using-actionscript-%e4%bd%bf%e7%94%a8as%e6%a3%80%e6%9f%a5fp%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 13:45:00 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ApacheFlex]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashPlayer]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2256</guid>
		<description><![CDATA[FlashPlayer provide a cool local storage mechanism called ‘<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_3.html">SharedObject’</a>,&#160; we can store some user info in user local machine. for example, douban<p class='read-more'><a href='http://liguoliang.com/2012/check-flashplayer-sharedobject-setting-using-actionscript-%e4%bd%bf%e7%94%a8as%e6%a3%80%e6%9f%a5fp%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>FlashPlayer provide a cool local storage mechanism called ‘<a href="http://livedocs.adobe.com/flex/3/html/help.html?content=lsos_3.html">SharedObject’</a>,&nbsp; we can store some user info in user local machine. for example, douban.fm store the last channel in sharedObject.</p>
<p>You can check the local storage setting for current domain by right click, or check all setting from Control Panel&gt;FlashPlayer, additionally, you can manage all settings by this: <a href="http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html">http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager07.html</a></p>
<p>Flashplayer need the user configure this setting manually, but some times we want change the setting automatically, especially for some enterprise application, like E-Learning, Banking, HIS.</p>
<p>Currently, I did not found any API or workaround to change the local storage automatically <img src='http://liguoliang.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>I just write a small tool to check the local storage setting directly, &gt;&gt;<a href="http://liguoliang.com/wp-content/uploads/2012/02/FPLocalStorageCheckUtil.swf">Link</a>&lt;&lt; <br />(you may download and upload this swf to your server if needed)</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/02/image_thumb.png" width="565" height="449"><br />&nbsp;</p>
<pre class="java" name="code">/**
	 * Check local storage setting.
	 */
	protected function checkLocalStorage(event:MouseEvent):void
	{
		var sharedObjectForTest:SharedObject = SharedObject.getLocal("sharedObjectTest", "/");

		sharedObjectForTest.addEventListener(NetStatusEvent.NET_STATUS, onSharedObjectEvent);
		sharedObjectForTest.data.result = "OK";
		try
		{
			var result:String = sharedObjectForTest.flush();
			if(result == SharedObjectFlushStatus.FLUSHED) {
				traceLog("OK, and currect size is: " + sharedObjectForTest.size);
			}else {
				traceLog("Failed, and the Flashplayer security setting panel is shown.");
			}
		}
		catch(error:Error)
		{
			traceLog("Error, and show the seeting panel manually;");
			Security.showSettings(SecurityPanel.LOCAL_STORAGE);
		}
	}
</pre>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/check-flashplayer-sharedobject-setting-using-actionscript-%e4%bd%bf%e7%94%a8as%e6%a3%80%e6%9f%a5fp%e6%9c%ac%e5%9c%b0%e5%ad%98%e5%82%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashBuilder: 如何根据序列号确定其对应版本?</title>
		<link>http://liguoliang.com/2012/get-flash-builder-version-by-license-code/</link>
		<comments>http://liguoliang.com/2012/get-flash-builder-version-by-license-code/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 15:29:06 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Apache Flex]]></category>
		<category><![CDATA[FlexBuilder]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2237</guid>
		<description><![CDATA[如何根据序列号确定其对应版本?
<a href="http://liguoliang.com/wp-content/uploads/2012/01/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/01/image_thumb.png" width="510" height="494"/></a>
由于之前采购过不同版本的FB, 具体序列号对应版本早已记不清楚, 于是微博上@了几个专家, 尚未收到任何答复的情况下直接拨打Adobe的客服:
<strong>中国</strong>10800 744 0438（通过联通），或 10800 440 0421（通过电信）[<a href="http://shop.adobe.com/store/adbehcn/Content/pbPage.faq">http://shop.ado</a><p class='read-more'><a href='http://liguoliang.com/2012/get-flash-builder-version-by-license-code/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>如何根据序列号确定其对应版本?</p>
<p><a href="http://liguoliang.com/wp-content/uploads/2012/01/image.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://liguoliang.com/wp-content/uploads/2012/01/image_thumb.png" width="510" height="494"></a></p>
<p>由于之前采购过不同版本的FB, 具体序列号对应版本早已记不清楚, 于是微博上@了几个专家, 尚未收到任何答复的情况下直接拨打Adobe的客服:</p>
<p><strong>中国</strong>10800 744 0438（通过联通），或 10800 440 0421（通过电信）[<a href="http://shop.adobe.com/store/adbehcn/Content/pbPage.faq">http://shop.adobe.com/store/adbehcn/Content/pbPage.faq</a>]
<p>报出序列号之后客服耐心回答了版本跟授权的问题.
<p>从4.0升级到4.5大致需要415RMB, 从4.5到4.6是不需要费用的, 明年回来就有4.6可用了&#8230;.</p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/get-flash-builder-version-by-license-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript: Check if a xml attribute/element exists 检查XML属性/元素是否存在</title>
		<link>http://liguoliang.com/2012/actionscript-check-if-a-xml-attributeelement-exists/</link>
		<comments>http://liguoliang.com/2012/actionscript-check-if-a-xml-attributeelement-exists/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 16:21:03 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ApacheFlex]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2228</guid>
		<description><![CDATA[Here is the XML:
<code>&#60;XeSex sexIDElement='MID'&#62; &#60;SexID&#62; M &#60;/SexID&#62; &#60;Name&#62; Male &#60;/Name&#62; &#60;Active&#62; y &#60;/Active&#62; &#60;</code><p class='read-more'><a href='http://liguoliang.com/2012/actionscript-check-if-a-xml-attributeelement-exists/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Here is the XML:</p>
<p><code>&lt;XeSex sexIDElement='MID'&gt; &lt;SexID&gt; M &lt;/SexID&gt; &lt;Name&gt; Male &lt;/Name&gt; &lt;Active&gt; y &lt;/Active&gt; &lt;Code&gt; M &lt;/Code&gt; &lt;/XeSex&gt; </code>
<p>Attitude:&nbsp; sexIDElement = ‘MID’;<br />Element: Name = Male</p>
<p><code class="java" name="code">trace(xmlTest.hasOwnProperty('@sexIDElement')); // check if the attribute exists trace(xmlTest.hasOwnProperty('Name')); // check if the element exists</code></p>
<p>BTW, About: <a href="http://www.w3schools.com/dtd/dtd_el_vs_attr.asp">XML Elements vs. Attributes</a></p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/actionscript-check-if-a-xml-attributeelement-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Build: org.xml.sax.SAXParseException :The entity name must immediately follow the &#8216;&amp;&#8217; in the entity reference</title>
		<link>http://liguoliang.com/2012/org-xml-sax-saxparseexception-the-entity-name-must-immediately-follow/</link>
		<comments>http://liguoliang.com/2012/org-xml-sax-saxparseexception-the-entity-name-must-immediately-follow/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:25:16 +0000</pubDate>
		<dc:creator>Guoliang</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ApacheFlex]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[SAXParseException]]></category>

		<guid isPermaLink="false">http://liguoliang.com/?p=2226</guid>
		<description><![CDATA[在过去接近4年的时间里, 很少使用MXML, 几乎都是纯AS, 最近操作了一点点MXML, 譬如:
<code>&#60;s:Button enabled=”isDirty() &#38;&#38; canSaveNow()” /&#62;</code>
&#160;
在build的时候遇到错误: 
org.xml.sax.SA<p class='read-more'><a href='http://liguoliang.com/2012/org-xml-sax-saxparseexception-the-entity-name-must-immediately-follow/'>More...</a></p><p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></description>
			<content:encoded><![CDATA[<p>在过去接近4年的时间里, 很少使用MXML, 几乎都是纯AS, 最近操作了一点点MXML, 譬如:</p>
<p><code>&lt;s:Button enabled=”isDirty() &amp;&amp; canSaveNow()” /&gt;</code>
<p>&nbsp;</p>
<p>在build的时候遇到错误: </p>
<blockquote><p>org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&amp;’ in the entity reference</p>
</blockquote>
<p>Google了一下, XML解析的问题, 解决方法:</p>
<p>&amp;&amp; 替换为:&nbsp; [&amp;amp;&amp;amp;]</p>
<p><code>&lt;s:Button enabled=”isDirty() &amp;amp;&amp;amp; canSaveNow()” /&gt;</code></p>
<p><p>

----------Post from: <a href="http://liguoliang.com">@LiGuoliang.com, 欢迎回来~</a>----------</p></p>
]]></content:encoded>
			<wfw:commentRss>http://liguoliang.com/2012/org-xml-sax-saxparseexception-the-entity-name-must-immediately-follow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

