<?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"
	>

<channel>
	<title>Yi's blog</title>
	<atom:link href="http://tanyi.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://tanyi.info</link>
	<description>keep it simple</description>
	<pubDate>Thu, 29 Jul 2010 18:02:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>美国“砖家”</title>
		<link>http://tanyi.info/2010/07/black-hat-sucks/</link>
		<comments>http://tanyi.info/2010/07/black-hat-sucks/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 18:02:46 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<category><![CDATA[venturebeat]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=179</guid>
		<description><![CDATA[
我的朋友 Iceskysl 最近很郁闷，因为他上了著名的风投博客 Venturebeat首页。事情是因为他写了很多Andriod手机的软件，他写的软件很好用，很快下载量过百万。于是被不负责任的美国黑客盯上，最近的BLACK HAT大会上，某个公司借机推出一款叫做lookup的手机查马软件。据说这个软件在大多数手机上查出40%+的程序在偷窃用户数据（WOW!）。而Icekysl是一位来自中国的受欢迎的手机软件作者。于是手机后门+中国威胁立刻就成了这款基于求成的lookup的炒作主题。在BH上炒一炒后就被半懂不懂的VB小编搬上了MobileBeat的首页。MobileBeat作为Venturebeat的重头内容，在国内的互联网“先锋”中很有影响力，于是被国内的各种网站不伦不类地翻译过来再添油加醋地继续炒&#8230;读罢新闻之后，我惊叹原来Iceskysl是一个掌控着全球手机的恐怖大BOSS
Errr&#8230;..American 砖家 sucks!


]]></description>
			<content:encoded><![CDATA[<div>
<p>我的朋友 <a href="http://iceskysl.1sters.com/?p=757">Iceskysl</a> 最近很郁闷，因为他上了著名的风投博客 <a href="http://mobile.venturebeat.com/2010/07/28/android-wallpaper-app-that-steals-your-data-was-downloaded-by-millions/#disqus_thread">Venturebeat</a>首页。事情是因为他写了很多Andriod手机的软件，他写的软件很好用，很快下载量过百万。于是被不负责任的美国黑客盯上，最近的BLACK HAT大会上，某个公司借机推出一款叫做lookup的手机查马软件。据说这个软件在大多数手机上查出40%+的程序在偷窃用户数据（WOW!）。而Icekysl是一位来自中国的受欢迎的手机软件作者。于是手机后门+中国威胁立刻就成了这款基于求成的lookup的炒作主题。在BH上炒一炒后就被半懂不懂的VB小编搬上了MobileBeat的首页。MobileBeat作为Venturebeat的重头内容，在国内的互联网“先锋”中很有影响力，于是被国内的各种网站不伦不类地翻译过来再添油加醋地继续炒&#8230;读罢新闻之后，我惊叹原来Iceskysl是一个掌控着全球手机的恐怖大BOSS</p>
<p>Errr&#8230;..American 砖家 sucks!</p>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/07/black-hat-sucks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>一个好看又好用的Cygwin 1.7 终端</title>
		<link>http://tanyi.info/2010/07/pretty_cygwin_client/</link>
		<comments>http://tanyi.info/2010/07/pretty_cygwin_client/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 16:23:48 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<category><![CDATA[cygwin]]></category>

		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=175</guid>
		<description><![CDATA[一直在使用 Windows环境，所以 Cygwin成了我几乎每天使用到的工具。Cygwin默认通过bat文件调用windows的命令行窗口作为终端，那个DOS窗口的可用性非常糟糕——无法调整窗口大小，无法传入ASCII NUL，复制黏贴非常复杂。
我试试网上的多种改善方案，最后发现子好用的是：PuttyCyg http://code.google.com/p/puttycyg/
PuttyCyg是一个扩张的putty客户端，提供加入 -cygterm方式来模拟Cygwin终端。PuttyCyg的优点是保留了 Putty的一切优点。
Cygwin升级到 1.7之后，我发现PuttyCyg的GUI无法再正常工作，但是通过命令行方式可以正常工作，看来是 PuttyCyg 的一个 Bug。所以在升级了Cygwin之后，可以通过以下命令行（放在快捷方式里更好）来启动 PuttyCyg的终端：
putty.exe -load &#8220;cygwin&#8221; -cygterm -
其实不加 -load &#8220;cygwin&#8221; 就可以工作了，但是我是一个字体控，我在 puttycyg里面加了一个名为 cygwin 的 profile，用于调整字体，translation 编码等设置。
]]></description>
			<content:encoded><![CDATA[<p>一直在使用 Windows环境，所以 <a href="http://cygwin.cn/">Cygwin</a>成了我几乎每天使用到的工具。Cygwin默认通过bat文件调用windows的命令行窗口作为终端，那个DOS窗口的可用性非常糟糕——无法调整窗口大小，无法传入ASCII NUL，复制黏贴非常复杂。</p>
<p>我试试网上的多种改善方案，最后发现子好用的是：PuttyCyg <a href="http://code.google.com/p/puttycyg/">http://code.google.com/p/puttycyg/</a></p>
<p>PuttyCyg是一个扩张的putty客户端，提供加入 -cygterm方式来模拟Cygwin终端。PuttyCyg的优点是保留了 Putty的一切优点。</p>
<p>Cygwin升级到 1.7之后，我发现PuttyCyg的GUI无法再正常工作，但是通过命令行方式可以正常工作，看来是 PuttyCyg 的一个 Bug。所以在升级了Cygwin之后，可以通过以下命令行（放在快捷方式里更好）来启动 PuttyCyg的终端：</p>
<blockquote><p>putty.exe -load &#8220;cygwin&#8221; -cygterm -</p></blockquote>
<p>其实不加 -load &#8220;cygwin&#8221; 就可以工作了，但是我是一个字体控，我在 puttycyg里面加了一个名为 cygwin 的 profile，用于调整字体，translation 编码等设置。</p>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/07/pretty_cygwin_client/feed/</wfw:commentRss>
		</item>
		<item>
		<title>和 Ruby 语言的创造者 Matz 吃饭</title>
		<link>http://tanyi.info/2010/07/met_matz/</link>
		<comments>http://tanyi.info/2010/07/met_matz/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 14:37:09 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<category><![CDATA[matz]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=171</guid>
		<description><![CDATA[6月 RubyConfChina 遇见 Ruby 语言的创造者 Matz Yukihiro Matsumoto，一起吃饭

]]></description>
			<content:encoded><![CDATA[<p>6月 RubyConfChina 遇见 Ruby 语言的创造者 Matz Yukihiro Matsumoto，一起吃饭</p>
<p><a href="http://tanyi.info/wp-content/uploads/2010/07/with_matz_4.jpg"><img class="alignnone size-medium wp-image-172" title="with_matz_4" src="http://tanyi.info/wp-content/uploads/2010/07/with_matz_4-300x200.jpg" alt="" width="300" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/07/met_matz/feed/</wfw:commentRss>
		</item>
		<item>
		<title>从明天起，我要做一个独立游戏人，开一个麻球帐号，做自己心仪的游戏发布给1亿个人</title>
		<link>http://tanyi.info/2010/07/mochi/</link>
		<comments>http://tanyi.info/2010/07/mochi/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 09:47:48 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<category><![CDATA[开发者]]></category>

		<category><![CDATA[麻球]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=167</guid>
		<description><![CDATA[经过这两个月来盛大同事们不舍昼夜的努力，麻球网正式向中国的FLASH开发者提供服务了！做FLASH游戏开发的朋友都知道Mochi
Media平台。它是全世界最大的FLASH游戏应用提供商（没有之一）！在09年底盛大网络收购了Mochi平台，并在第一时间完成了全套
中文化服务，让国内的FLASH开发者都能搭上这辆穿梭在各大SNS网络中的FLASH快车。从此Mochi有了一个超级萌的中文名字——“麻球”！
麻球好大，麻球之所以超级大，不仅因为麻球每个月有1.4亿个活跃玩家，也不仅仅因为麻球上营运了15,000多款网页游戏，或者因为麻球正在向40,000家游戏网站提供游戏内容。麻球之所以超级大是因为麻球里有很多很多FLASH游戏牛人，他们每个月都在麻球上发布自己最新的游戏作品，它们包括《战争王国》、《桌面塔防》等等许多脍炙人口的FLASH游戏。
麻球上有这么多FLASH牛人是因为麻球的功能方便又好用。通过几行代码就能在自己的游戏里加入用户追踪、道具销售、玩家收费、广告宣传等一系列的功能，然后通过几下点击，就能把游戏作品发布到全世界的SNS社区和游戏网站上去。更重要的是，麻球和开发者站在一起，用它巨大的平台保护开发者的版权利益。因为麻球尊重版权，恪守承诺，所以才能成为世界上最大的FLASH游戏库，拥有那么多经典游戏作品。在麻球上发布作品，永远都不会遇到那些龌龊的让人愤恨的分成问题。
今天麻球向全国的FLASH开发者们广发英雄帖，不仅将这个先进的平台开放给每一位开发者，更为FLASH开发者专门设立了一千万美元的开发基金——这个天下是FLASH开发者们的，所以从明天起，我要做一个独立游戏人，开一个麻球帐号，做自己心仪的游戏发布给1亿个人
]]></description>
			<content:encoded><![CDATA[<p><a href="http://zh-cn.mochimedia.com/"><img class="alignleft" src="http://zh-cn.mochimedia.com/_media/css/images/fund/mochi-man1.png" alt="" width="163" height="163" /></a>经过这两个月来盛大同事们不舍昼夜的努力，<a href="http://zh-cn.mochimedia.com/" target="_blank">麻球网</a>正式向中国的FLASH开发者提供服务了！做FLASH游戏开发的朋友都知道Mochi</p>
<p>Media平台。它是全世界最大的FLASH游戏应用提供商（没有之一）！在09年底盛大网络收购了Mochi平台，并在第一时间完成了全套</p>
<p>中文化服务，让国内的FLASH开发者都能搭上这辆穿梭在各大SNS网络中的FLASH快车。从此Mochi有了一个超级萌的中文名字——“麻球”！</p>
<p>麻球好大，麻球之所以超级大，不仅因为麻球每个月有1.4亿个活跃玩家，也不仅仅因为麻球上营运了15,000多款网页游戏，或者因为麻球正在向40,000家游戏网站提供游戏内容。麻球之所以超级大是因为麻球里有很多很多FLASH游戏牛人，他们每个月都在麻球上发布自己最新的游戏作品，它们包括《战争王国》、《桌面塔防》等等许多脍炙人口的FLASH游戏。</p>
<p>麻球上有这么多FLASH牛人是因为麻球的功能方便又好用。通过几行代码就能在自己的游戏里加入用户追踪、道具销售、玩家收费、广告宣传等一系列的功能，然后通过几下点击，就能把游戏作品发布到全世界的SNS社区和游戏网站上去。更重要的是，麻球和开发者站在一起，用它巨大的平台保护开发者的版权利益。因为麻球尊重版权，恪守承诺，所以才能成为世界上最大的FLASH游戏库，拥有那么多经典游戏作品。在麻球上发布作品，永远都不会遇到那些龌龊的让人愤恨的分成问题。</p>
<p>今天麻球向全国的FLASH开发者们广发英雄帖，不仅将这个先进的平台开放给每一位开发者，<a href="http://zh-cn.mochimedia.com/developers/fund.html">更为FLASH开发者专门设立了一千万美元的开发基金</a>——这个天下是FLASH开发者们的，所以从明天起，我要做一个独立游戏人，开一个麻球帐号，做自己心仪的游戏发布给1亿个人</p>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/07/mochi/feed/</wfw:commentRss>
		</item>
		<item>
		<title>《ACTIONSCRIPT中的元编程和开发流程解耦》- SWFSH 活动发言稿</title>
		<link>http://tanyi.info/2010/06/talk-on-swfsh-2010053/</link>
		<comments>http://tanyi.info/2010/06/talk-on-swfsh-2010053/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 17:28:20 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[Actionscript]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[swfsh]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=164</guid>
		<description><![CDATA[2010年5月30日，在第三届FLASH开发者交流会上的主题演讲，内容关于 ACTIONSCRIPT 中的元编程技巧，和开发流程解耦。
ACTIONSCRIPT中的元编程和开发流程解耦
主讲人：SGF – 谈熠

Actionscript中的元编程和开发流程解耦（谈熠）
View more presentations from FLASH开发者交流会.

]]></description>
			<content:encoded><![CDATA[<p>2010年5月30日，在第三届FLASH开发者交流会上的主题演讲，内容关于 ACTIONSCRIPT 中的元编程技巧，和开发流程解耦。</p>
<h4>ACTIONSCRIPT中的元编程和开发流程解耦</h4>
<p>主讲人：SGF – 谈熠</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="align" value="middle" /><param name="src" value="http://player.ku6.com/refer/sHDCuxCLilAp-dJU/v.swf" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.ku6.com/refer/sHDCuxCLilAp-dJU/v.swf" align="middle"></embed></object></p>
<div id="__ss_4358229" style="width: 425px;"><strong><a title="Actionscript中的元编程和开发流程解耦（谈熠）" href="http://www.slideshare.net/swfsh/actionscript-4358229">Actionscript中的元编程和开发流程解耦（谈熠）</a></strong><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="__sse4358229" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=actionscript-100530231021-phpapp01&amp;stripped_title=actionscript-4358229" /><embed id="__sse4358229" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=actionscript-100530231021-phpapp01&amp;stripped_title=actionscript-4358229" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/swfsh">FLASH开发者交流会</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/06/talk-on-swfsh-2010053/feed/</wfw:commentRss>
		</item>
		<item>
		<title>一条大新闻：Andriod 2.2 性能提高 450%</title>
		<link>http://tanyi.info/2010/05/google-android-froyo/</link>
		<comments>http://tanyi.info/2010/05/google-android-froyo/#comments</comments>
		<pubDate>Tue, 25 May 2010 14:24:34 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<category><![CDATA[andriod]]></category>

		<category><![CDATA[手机]]></category>

		<guid isPermaLink="false">http://tanyi.info/?p=162</guid>
		<description><![CDATA[http://mobile.venturebeat.com/2010/05/21/google-android-froyo/
简而言之: Google 最新发布的 Android 2.2(代号froyo) 虚拟机运行性能提升 450% （4.5倍）。
这意味着大部分低端手机的硬件环境上可以使用 Andriod 实现智能手机的功能。
这意味着在中国，用山寨机的成本就可以制造高级智能手机
这意味着加载Andriod平台的手机出货量将会在一年内达到井喷
这意味着太多了。。。
]]></description>
			<content:encoded><![CDATA[<p>http://mobile.venturebeat.com/2010/05/21/google-android-froyo/</p>
<p>简而言之: Google 最新发布的 Android 2.2(代号froyo) 虚拟机运行性能提升 450% （4.5倍）。</p>
<p>这意味着大部分低端手机的硬件环境上可以使用 Andriod 实现智能手机的功能。</p>
<p>这意味着在中国，用山寨机的成本就可以制造高级智能手机</p>
<p>这意味着加载Andriod平台的手机出货量将会在一年内达到井喷</p>
<p>这意味着太多了。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/05/google-android-froyo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ActionScript3 中的元编程 Metaprogramming in ActionScript3</title>
		<link>http://tanyi.info/2010/05/metaprogramming-in-as3/</link>
		<comments>http://tanyi.info/2010/05/metaprogramming-in-as3/#comments</comments>
		<pubDate>Sun, 02 May 2010 17:10:24 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[Actionscript]]></category>

		<guid isPermaLink="false">http://tanyi.info/2010/05/actionscript3-%e4%b8%ad%e7%9a%84%e5%85%83%e7%bc%96%e7%a8%8b-metaprogramming-in-actionscript3/</guid>
		<description><![CDATA[今天的ActionScript3看上去已经越来越象JAVA了，这是Adobe刻意营造出来局面，以促进AS快速普及。然而ActionScript在骨子里始终是一个不折不扣的prototype-based的脚本语言，因此AS脚本的本质上是Lambda。在许多环境下，巧妙地利用AS的动态特征，可以通过元编程来减少代码数量并提高实现的质量。这里我举几个例子：
PS: Ruby已经深深地格式化了我对编程语言的理解，因此在以下的实现中我直接参考了Ruby的对应实现。
1. Method missing实现
AS3 提供 flash.util.Porxy 来替代 AS中的Object.__resolve属性。通过继承Proxy类，并重载 callProperty方法，就可以在FLASH的运行时捕捉没有被实现的方法调用。在一些情况下，巧妙得利用这种机制可以大幅降低程序的实现代码量，提高程序的可维护性。比如在开发C/S结构的应用程序时，使用这个方法，可以让服务器端和客户端开发小组在工作上相互解耦，详细请见我在Adobe技术峰会上的发言。
下面就是一段应用在生成环境下的实现代码：
package
{
	use namespace flash_proxy;

        import flash.util.Porxy;
        import mygame.Protocol;
        import mygame.BuffWriter;

	public dynamic class Server
		extends Proxy
	{

		/**
		 * 为Server提供 method missing 捕捉机制，这样向server调用任意未实现的方法都会被编译成指令数据
		 * 发给服务器。
		 * @param name 调用的方法名，即通信协议名，采用驼峰格式，例如 server.runTo
		 * [...]]]></description>
			<content:encoded><![CDATA[<p>今天的ActionScript3看上去已经越来越象JAVA了，这是Adobe刻意营造出来局面，以促进AS快速普及。然而ActionScript在骨子里始终是一个不折不扣的prototype-based的脚本语言，因此AS脚本的本质上是<a href="http://zh.wikipedia.org/zh-cn/%CE%9B%E6%BC%94%E7%AE%97" target="_blank">Lambda</a>。在许多环境下，巧妙地利用AS的动态特征，可以通过<a href="http://zh.wikipedia.org/zh-cn/%E5%85%83%E7%BC%96%E7%A8%8B" target="_blank">元编程</a>来减少代码数量并提高实现的质量。这里我举几个例子：</p>
<p>PS: Ruby已经深深地格式化了我对编程语言的理解，因此在以下的实现中我直接参考了Ruby的对应实现。</p>
<p>1. Method missing实现</p>
<p>AS3 提供 flash.util.Porxy 来替代 AS中的<a href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00002045.html" target="_blank">Object.__resolve</a>属性。通过继承Proxy类，并重载 callProperty方法，就可以在FLASH的运行时捕捉没有被实现的方法调用。在一些情况下，巧妙得利用这种机制可以大幅降低程序的实现代码量，提高程序的可维护性。比如在开发C/S结构的应用程序时，使用这个方法，可以让服务器端和客户端开发小组在工作上相互解耦，详细请见我在Adobe技术峰会上的发言。</p>
<p>下面就是一段应用在生成环境下的实现代码：</p>
<pre>package
{
	use namespace flash_proxy;

        import flash.util.Porxy;
        import mygame.Protocol;
        import mygame.BuffWriter;

	public dynamic class Server
		extends Proxy
	{

		/**
		 * 为Server提供 method missing 捕捉机制，这样向server调用任意未实现的方法都会被编译成指令数据
		 * 发给服务器。
		 * @param name 调用的方法名，即通信协议名，采用驼峰格式，例如 server.runTo
		 * @param rest 发送给服务器的数据参数，比如 server.runTo([40,50])
		 * @return 编译好的发给服务器的bytearray数据
		 */
		flash_proxy override function callProperty(name:*, ...rest):*
		{
			var command:String = (name as QName).localName; // 获取调用的方法名，例如 "runTo"

			// translate camelCase function name to UPPERCASE command name, it become "RUN_TO"
			command = command.replace(/[A-Z]/g, "_$&amp;").toUpperCase();

			// 检查这个调用是否是合法的Protocal命令
			if(!Protocol["hasOwnProperty"]("CMD_"+command))
			{
				// process invalid command
				throw(new ArgumentError("Unknow server command:"+command));
				return;
			}

			var buf:ByteArray = BuffWriter.toBuff(
				Protocol["CMD_"+command],
				rest);

			return buf;
		}
	}
}</pre>
<p>2. <a href="http://zh.wikipedia.org/zh-cn/Duck_typing" target="_blank">Duck typing</a> 实现</p>
<p><a href="http://zh.wikipedia.org/zh-cn/Duck_typing" target="_blank">Duck typing</a> 是Ruby和Python中的一大亮点。Duck typing 本质上是一种结果导向的编程思路，这有悖于OO的结构导向思路，但确是一个非常实用的技巧。AS3引入了类型数组——Vector类型，Vector和Array共享大量的方法和属性，不同之处仅在于Vector是静态类型，而Array是动态类型。在程序中，我们经常会对Array对象进行方法扩展，使用 Duck typing 之后，就可以将这些扩展应用到Vector类型的数据上去。</p>
<pre>/**
 * 将一个路径列表序列化并发送给服务器
 * @param path 路径列表，支持 Array, Vector.&lt;Number|int|uint|Point|String&gt;
 */
public function writePath(path:*):void
{
   if(!isArrayLike(path)) return; // 不是可操作的类数组类型
   var parthString:String = ""
   for(var i:int = 0; i&lt;path.length; i++)
	parthString += path[i];
   // ...
   // writing path data to a socket byte array
   // ...
}

/**
 * Finds out if an object is a generic Vector.
 * It works because the value returned for getQualifiedClassName(a vector)
 * is "__AS3__.vec::Vector.&lt;the vector's type&gt;".
 * @param object Object Any object.
 * @return Boolean True if the object is a generic Vector, false otherwise.
 */
function isArrayLike(object:Object):Boolean
{
    if(object is Array) return true;
    var class_name:String = getQualifiedClassName(object);
    return class_name.indexOf("__AS3__.vec::Vector.") === 0;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/05/metaprogramming-in-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>《在FLASH平台上开发大型游戏》-  我在Adobe技术峰会上的发言演讲稿</title>
		<link>http://tanyi.info/2010/05/talk-on-adobe-minimax-2010/</link>
		<comments>http://tanyi.info/2010/05/talk-on-adobe-minimax-2010/#comments</comments>
		<pubDate>Sun, 02 May 2010 16:34:19 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<guid isPermaLink="false">http://tanyi.info/2010/05/%e3%80%8a%e5%9c%a8flash%e5%b9%b3%e5%8f%b0%e4%b8%8a%e5%bc%80%e5%8f%91%e5%a4%a7%e5%9e%8b%e6%b8%b8%e6%88%8f%e3%80%8b-%e6%88%91%e5%9c%a8adobe%e6%8a%80%e6%9c%af%e5%b3%b0%e4%bc%9a%e4%b8%8a%e7%9a%84/</guid>
		<description><![CDATA[这是我在2010年4月Adobe中国技术峰会上的演讲讲义。其中主要介绍了我们团队通过在FLASH平台上进行大型软件开发所遇到的周折和探索出的解决和提高的方法。
会后有见腾讯的FLASH开发组博客说我所讲的内容和题目不符。我认为不尽然，每一款游戏开发的具体设计林林总总不一而足。而从技术角度保证你的游戏软件产品不失败的关键是要提高你的软件的产品质量。FLASH技术经过这么多年的演变，已经逐步成熟为一个可靠的软件平台。Adobe为了保证其工具软件的销量，在这个过程投入巨大的资源来维护兼容性，以使得这个巨大的变化能在潜移默化中完成。当越来越多的软件通过FLASH平台在互联网上发布时，软件质量对于产品的重要性已经远远不是Timeline coders所能够实现的。希望我所整理的这些经验和工具能够为大家提供帮助。

View more presentations from FLASH开发者交流会.

]]></description>
			<content:encoded><![CDATA[<p>这是我在2010年4月Adobe中国技术峰会上的演讲讲义。其中主要介绍了我们团队通过在FLASH平台上进行大型软件开发所遇到的周折和探索出的解决和提高的方法。</p>
<p>会后有见<a href="http://flashteam.tencent.com/post/85/adobe-%E5%B9%B3%E5%8F%B0%E6%8A%80%E6%9C%AF%E5%B3%B0%E4%BC%9A%E7%94%BB%E9%AD%94%E6%B8%B8%E8%AE%B0team%E5%AE%98%E6%96%B9%E7%89%88/" target="_blank">腾讯的FLASH开发组博客</a>说我所讲的内容和题目不符。我认为不尽然，每一款游戏开发的具体设计林林总总不一而足。而从技术角度保证你的游戏软件产品不失败的关键是要提高你的软件的产品质量。FLASH技术经过这么多年的演变，已经逐步成熟为一个可靠的软件平台。Adobe为了保证其工具软件的销量，在这个过程投入巨大的资源来维护兼容性，以使得这个巨大的变化能在潜移默化中完成。当越来越多的软件通过FLASH平台在互联网上发布时，软件质量对于产品的重要性已经远远不是Timeline coders所能够实现的。希望我所整理的这些经验和工具能够为大家提供帮助。</p>
<div id="__ss_3938482" style="width: 425px;"><strong></strong><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="id" value="__sse3938482" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=adobe-max-talk-posh-100502110542-phpapp01&amp;rel=0&amp;stripped_title=flashmmo" /><embed id="__sse3938482" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=adobe-max-talk-posh-100502110542-phpapp01&amp;rel=0&amp;stripped_title=flashmmo" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="padding-right: 0px; padding-left: 0px; padding-bottom: 12px; padding-top: 5px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/swfsh">FLASH开发者交流会</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/05/talk-on-adobe-minimax-2010/feed/</wfw:commentRss>
		</item>
		<item>
		<title>《Flash应用程序的内存管理机制和优化方法》- SWFSH 活动发言稿</title>
		<link>http://tanyi.info/2010/05/talk-on-swfsh-201001/</link>
		<comments>http://tanyi.info/2010/05/talk-on-swfsh-201001/#comments</comments>
		<pubDate>Sun, 02 May 2010 15:12:52 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[Actionscript]]></category>

		<guid isPermaLink="false">http://tanyi.info/2010/05/%e3%80%8aflash%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e7%9a%84%e5%86%85%e5%ad%98%e7%ae%a1%e7%90%86%e6%9c%ba%e5%88%b6%e5%92%8c%e4%bc%98%e5%8c%96%e6%96%b9%e6%b3%95%e3%80%8b-swfsh-%e6%b4%bb%e5%8a%a8/</guid>
		<description><![CDATA[这是1月的FLASH开发者交流会上我的发言稿，主要讨论FLASH播放器的内存机制、对于这个机制的观察和理解，以及在此基础上如何进行优化。
会议现场的视频：

讲稿PPT：

]]></description>
			<content:encoded><![CDATA[<p>这是1月的<a href="http://swfsh.com/" target="_blank">FLASH开发者交流会</a>上我的发言稿，主要讨论FLASH播放器的内存机制、对于这个机制的观察和理解，以及在此基础上如何进行优化。</p>
<p>会议现场的视频：</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://player.ku6.com/refer/IMz36XdVzBH8LZnd/v.swf" /><embed type="application/x-shockwave-flash" width="480" height="400" src="http://player.ku6.com/refer/IMz36XdVzBH8LZnd/v.swf"></embed></object></p>
<p>讲稿PPT：</p>
<div id="__ss_2985398" style="width: 425px; text-align: left;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=flashgc-100125000906-phpapp01&amp;stripped_title=flash-gc" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=flashgc-100125000906-phpapp01&amp;stripped_title=flash-gc" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2010/05/talk-on-swfsh-201001/feed/</wfw:commentRss>
		</item>
		<item>
		<title>COC风味的 Flash Builder 代码自动生产功能</title>
		<link>http://tanyi.info/2009/10/coc%e9%a3%8e%e5%91%b3%e7%9a%84-flash-builder-%e4%bb%a3%e7%a0%81%e8%87%aa%e5%8a%a8%e7%94%9f%e4%ba%a7%e5%8a%9f%e8%83%bd/</link>
		<comments>http://tanyi.info/2009/10/coc%e9%a3%8e%e5%91%b3%e7%9a%84-flash-builder-%e4%bb%a3%e7%a0%81%e8%87%aa%e5%8a%a8%e7%94%9f%e4%ba%a7%e5%8a%9f%e8%83%bd/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 15:40:56 +0000</pubDate>
		<dc:creator>Yi</dc:creator>
		
		<category><![CDATA[FLASH]]></category>

		<guid isPermaLink="false">http://tanyi.info/2009/10/coc%e9%a3%8e%e5%91%b3%e7%9a%84-flash-builder-%e4%bb%a3%e7%a0%81%e8%87%aa%e5%8a%a8%e7%94%9f%e4%ba%a7%e5%8a%9f%e8%83%bd/</guid>
		<description><![CDATA[Flash Builder 留给我一个大遗憾就是到了4.0还没有提供code template功能，所以要大量编码的时候，还是不得不回到FDT，因为里面积累了许多代码自动完成的模板。昨天不经意间GOOGLE到一个很有意思的东西叫做EclipseMonkey 这个工具可以以脚本的方式玩弄Eclipse的DOM，爽！于是我借用了些Ruby的 convention over configuration 腔调，写了一个自动生产属性和方法的EM脚本。
下面是这个东东具体效用的slide，有图有真相，废话不多讲。
Convention Generator - Yi’s Eclipse Monkey Scripts for Flash Builder
View more presentations from halfmile.

]]></description>
			<content:encoded><![CDATA[<p>Flash Builder 留给我一个大遗憾就是到了4.0还没有提供code template功能，所以要大量编码的时候，还是不得不回到FDT，因为里面积累了许多代码自动完成的模板。昨天不经意间GOOGLE到一个很有意思的东西叫做<a href="http://wiki.eclipse.org/Eclipse_Monkey_Overview">EclipseMonkey</a> 这个工具可以以脚本的方式玩弄Eclipse的DOM，爽！于是我借用了些Ruby的 convention over configuration 腔调，写了一个<a href="http://code.google.com/p/yis-eclipse-monkey-scripts-for-flash-builder/">自动生产属性和方法的EM脚本</a>。</p>
<p>下面是这个东东具体效用的slide，有图有真相，废话不多讲。</p>
<div id="__ss_2389936" style="width: 425px; text-align: left"><a title="Convention Generator - Yi’s Eclipse Monkey Scripts for Flash Builder" style="display: block; margin: 12px 0px 3px; font: 14px helvetica,arial,sans-serif; text-decoration: underline" href="http://www.slideshare.net/halfmile/convention-generator-yis-eclipse-monkey-scripts-for-flash-builder">Convention Generator - Yi’s Eclipse Monkey Scripts for Flash Builder</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=actionscriptconventiongenerator-091031065252-phpapp02&amp;stripped_title=convention-generator-yis-eclipse-monkey-scripts-for-flash-builder" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=actionscriptconventiongenerator-091031065252-phpapp02&amp;stripped_title=convention-generator-yis-eclipse-monkey-scripts-for-flash-builder" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size: 11px; padding-top: 2px; font-family: tahoma,arial; height: 26px">View more <a style="text-decoration: underline" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration: underline" href="http://www.slideshare.net/halfmile">halfmile</a>.</div>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://tanyi.info/2009/10/coc%e9%a3%8e%e5%91%b3%e7%9a%84-flash-builder-%e4%bb%a3%e7%a0%81%e8%87%aa%e5%8a%a8%e7%94%9f%e4%ba%a7%e5%8a%9f%e8%83%bd/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
