<?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>J.et wong&#039;s 懒人记事本 &#187; Tech</title>
	<atom:link href="http://j.etwong.com/blog-category/web%e5%bc%80%e5%8f%91%ef%bc%8c%e7%b3%bb%e7%bb%9f%e6%9e%b6%e6%9e%84%ef%bc%8c%e5%88%86%e6%9e%90/feed" rel="self" type="application/rss+xml" />
	<link>http://j.etwong.com</link>
	<description>看看想想记记</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:59:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ios下的wordpress</title>
		<link>http://j.etwong.com/blog-361</link>
		<comments>http://j.etwong.com/blog-361#comments</comments>
		<pubDate>Wed, 01 Feb 2012 11:59:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://j.etwong.com/blog-361</guid>
		<description><![CDATA[测试一下]]></description>
			<content:encoded><![CDATA[<p>测试一下</p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-361/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>刷机备份</title>
		<link>http://j.etwong.com/blog-357</link>
		<comments>http://j.etwong.com/blog-357#comments</comments>
		<pubDate>Thu, 05 Jan 2012 11:08:11 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[adnroid]]></category>
		<category><![CDATA[blackrose]]></category>
		<category><![CDATA[hboot]]></category>
		<category><![CDATA[ics]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=357</guid>
		<description><![CDATA[c:\tools\blackrose_111231_2\other&#62;adb-w.exe reboot recovery * daemon not running. starting it now on port 5037 * * daemon started successfully * error: device not found （这是在hboot下，是重启不了） c:\tools\blackrose_111231_2\other&#62;adb-w.exe shell error: device not found c:\tools\blackrose_111231_2\other&#62;adb-w.exe devices List of devices attached c:\tools\blackrose_111231_2\other&#62;adb-w.exe devices List of devices attached HT9CVP806264 device c:\tools\blackrose_111231_2\other&#62;adb-w.exe reboot recovery (这次成功，是因为系统跳过了hboot，进了系统或者挂在某个地方) c:\tools\blackrose_111231_2\other&#62;fastboot-w devices c:\tools\blackrose_111231_2\other&#62;]]></description>
			<content:encoded><![CDATA[<p>c:\tools\blackrose_111231_2\other&gt;adb-w.exe reboot recovery<br />
* daemon not running. starting it now on port 5037 *<br />
* daemon started successfully *<br />
error: device not found<br />
（这是在hboot下，是重启不了）<br />
c:\tools\blackrose_111231_2\other&gt;adb-w.exe shell<br />
error: device not found</p>
<p>c:\tools\blackrose_111231_2\other&gt;adb-w.exe devices<br />
List of devices attached</p>
<p>c:\tools\blackrose_111231_2\other&gt;adb-w.exe devices<br />
List of devices attached<br />
HT9CVP806264    device</p>
<p>c:\tools\blackrose_111231_2\other&gt;adb-w.exe reboot recovery<br />
(这次成功，是因为系统跳过了hboot，进了系统或者挂在某个地方)<br />
c:\tools\blackrose_111231_2\other&gt;fastboot-w  devices</p>
<p>c:\tools\blackrose_111231_2\other&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-357/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>as3的图片变灰的代码</title>
		<link>http://j.etwong.com/blog-338</link>
		<comments>http://j.etwong.com/blog-338#comments</comments>
		<pubDate>Mon, 26 Sep 2011 03:04:08 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gray]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=338</guid>
		<description><![CDATA[if (gray) { var matrix : Array = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; face.filters = [new ColorMatrixFilter(matrix)]; } 去掉将filters = null 就好了]]></description>
			<content:encoded><![CDATA[<pre>
if (gray) {
				var matrix : Array = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0];
				face.filters = [new ColorMatrixFilter(matrix)];

			}
去掉将filters = null 就好了
</pre>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网页游戏中道具复制的原理</title>
		<link>http://j.etwong.com/blog-335</link>
		<comments>http://j.etwong.com/blog-335#comments</comments>
		<pubDate>Thu, 08 Sep 2011 08:32:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[网页游戏]]></category>
		<category><![CDATA[道具复制]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=335</guid>
		<description><![CDATA[作为游戏的研发人员，这个问题是尽量要避免掉的 发生游戏复制的情况一般为： 1.游戏服务器很卡，多次提交没做限制时，数据库操作时会导致取得老数据，而非最新数据导致更新数据时，就多次提交了， 常见的有：兑换某种道具时，只使用一次，就可以得到多个结果道具]]></description>
			<content:encoded><![CDATA[<p>作为游戏的研发人员，这个问题是尽量要避免掉的<br />
发生游戏复制的情况一般为：<br />
1.游戏服务器很卡，多次提交没做限制时，数据库操作时会导致取得老数据，而非最新数据导致更新数据时，就多次提交了，<br />
常见的有：兑换某种道具时，只使用一次，就可以得到多个结果道具</p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-335/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用Charles来测试并发业务</title>
		<link>http://j.etwong.com/blog-320</link>
		<comments>http://j.etwong.com/blog-320#comments</comments>
		<pubDate>Thu, 25 Aug 2011 10:44:26 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[charles]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[代理]]></category>
		<category><![CDATA[压力测试]]></category>
		<category><![CDATA[并发测试]]></category>
		<category><![CDATA[测试]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=320</guid>
		<description><![CDATA[charles是个不错的http查看工具，破解后可以做数据修改提交，并发测试，很牛B的 使用可以看这位仁兄的文章： 关于如何实现web游戏接口测试方法与测试工具 测试步骤： 2.常见业务问题： a)select 表 结果没有锁定去更新，如果并发就会导致多次UPDATE ， SO。。。。要加上条件。。。。 b)、有时Apache服务器会对并发有良好的处理，无法测试的出来，用内网的nginx比较有效果 c)、测试的时候尽量让程序多 sleep一下，这样测试比较有效果]]></description>
			<content:encoded><![CDATA[<p>charles是个不错的http查看工具，破解后可以做数据修改提交，并发测试，很牛B的</p>
<p>使用可以看这位仁兄的文章： <a href="http://wenku.baidu.com/view/3fd26107e87101f69e31959d.html" title="关于如何实现web游戏接口测试方法与测试工具" target="_blank">关于如何实现web游戏接口测试方法与测试工具</a></p>
<p><strong>测试步骤：</strong><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/08/1允许断点.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/08/1允许断点.jpg" alt="" width="458" height="418" class="alignnone size-full wp-image-325" /></a><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/08/2右键.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/08/2右键.jpg" alt="" width="380" height="494" class="alignnone size-full wp-image-324" /></a><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/08/3设置重复.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/08/3设置重复.jpg" alt="" width="404" height="297" class="alignnone size-full wp-image-323" /></a></p>
<p><a href="http://j.etwong.com/wp-content/uploads/2011/08/4设置并发数.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/08/4设置并发数.jpg" alt="" width="500" height="400" class="alignnone size-full wp-image-322" /></a><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/08/5结果.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/08/5结果.jpg" alt="" width="507" height="522" class="alignnone size-full wp-image-321" /></a></p>
<p>2.常见业务问题：<br />
a)select 表 结果没有锁定去更新，如果并发就会导致多次UPDATE ， SO。。。。要加上条件。。。。<br />
b)、有时Apache服务器会对并发有良好的处理，无法测试的出来，用内网的nginx比较有效果<br />
c)、测试的时候尽量让程序多 sleep一下，这样测试比较有效果</p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-320/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash actionscript 做的彩虹字，彩色字</title>
		<link>http://j.etwong.com/blog-304</link>
		<comments>http://j.etwong.com/blog-304#comments</comments>
		<pubDate>Fri, 22 Jul 2011 02:21:34 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gradient text]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[rainbow text]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=304</guid>
		<description><![CDATA[来源自：这个网站 效果如下： 原理看这里：&#8230;&#8230; 文件下载]]></description>
			<content:encoded><![CDATA[<p>来源自：<a href="http://www.flashandmath.com/howtos/alphamask/" target="_blank">这个网站</a><br />
效果如下：<br />
<a href="http://j.etwong.com/wp-content/uploads/2011/07/0009.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/07/0009.jpg" alt="" width="225" height="65" class="alignnone size-full wp-image-306" /></a></p>
<p>原理看<a href="http://www.actionscript.org/resources/blogs/47/Using-a-Color-Gradient-as-the-Text-Color-in-Flex-3.html" target="_blank">这里</a>：&#8230;&#8230;</p>
<p><a href='http://j.etwong.com/wp-content/uploads/2011/07/htalphamask-1.zip'>文件下载</a></p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gogoc 上 ipv6, win7+android无障碍上网 (二)</title>
		<link>http://j.etwong.com/blog-287</link>
		<comments>http://j.etwong.com/blog-287#comments</comments>
		<pubDate>Sun, 05 Jun 2011 16:14:28 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[gogo6]]></category>
		<category><![CDATA[gogoc]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=287</guid>
		<description><![CDATA[前面一篇ipv6能上大多数网站了,但好像还会有些小问题,发觉用gogoc还是不错的&#8230; 参考来自:http://www.ipv6home.cn/html/52/t-19752.html 同时也要参考这里: win7下操作步骤 下载gogo6客户端: http://www.freenet6.net 按照提示注册,下载,安装,启动操作,就可以正常看youtube视频了 注意的是:如果无法连接,重启一下或者关掉win7的防火墙&#8230; 不过,gogoc网站估计很快也会被墙的了 , 最好XX门也是要常备的.. android下操作步骤 前提是root掉的机器,android 2.2? 不确定 来源:http://thom.nklog.org/gogoc/ (非常的感谢原作者!!!) 下载他的apk,安装完成后,重启手机,再启动gogo6连接,如果能得到ip地址就正确了]]></description>
			<content:encoded><![CDATA[<p>前面一篇ipv6能上大多数网站了,但好像还会有些小问题,发觉用gogoc还是不错的&#8230;</p>
<p>参考来自:<a href="http://www.ipv6home.cn/html/52/t-19752.html">http://www.ipv6home.cn/html/52/t-19752.html</a><br />
同时也要参考<a href="http://sparkplug-moh.blogspot.com/2011/04/ipvyoutube.html">这里</a>:</p>
<p><span id="more-287"></span></p>
<p><strong>win7下操作步骤</strong><br />
下载gogo6客户端:<br />
http://www.freenet6.net   按照提示注册,下载,安装,启动操作,就可以正常看youtube视频了<br />
注意的是:如果无法连接,重启一下或者关掉win7的防火墙&#8230;<br />
不过,gogoc网站估计很快也会被墙的了 , 最好XX门也是要常备的..</p>
<p><strong>android下操作步骤</strong><br />
前提是root掉的机器,android 2.2? 不确定<br />
来源:http://thom.nklog.org/gogoc/ (非常的感谢原作者!!!)<br />
下载他的apk,安装完成后,重启手机,再启动gogo6连接,如果能得到ip地址就正确了</p>
<p> <img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://j.etwong.com/wp-content/uploads/2011/06/wpid-snap20110606_184732.png" /></p>
<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://j.etwong.com/wp-content/uploads/2011/06/wpid-snap20110606_184527.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-287/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>摆脱世上恶心的&#8221;连接被重置&#8221;  (一)</title>
		<link>http://j.etwong.com/blog-279</link>
		<comments>http://j.etwong.com/blog-279#comments</comments>
		<pubDate>Sun, 05 Jun 2011 02:54:32 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[fq]]></category>
		<category><![CDATA[gfw]]></category>
		<category><![CDATA[gogoc]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[翻墙]]></category>
		<category><![CDATA[连接重置]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=279</guid>
		<description><![CDATA[世上最恶心不过的就是&#8221;连接被重置&#8221; 比较可恨的是居然搜索中有个 &#8220;胡 &#8221; 都会被和谐掉,FUCK!!!怒火中烧&#8230;MB,做个技术 的容易吗?忙着加班,还得对付你们这帮孙子满足私利影响所有人带来的不便利&#8230;.有种的,Y的,明目张胆的局域网呀~~~ 说正题.. 现在win7 下Ipv6可以不用麻烦的翻墙切来切去了&#8230;. 条件说明:电信2M ADSL,路由无线上网,按网上一些说法, 这种方式是上不了V6的,,其实好像不是 这样&#8230;如下: 1.要做如下的事: 打开ip helper服务 打开路由器的upnp (默认应该是打开的) 2.按照如下办法来做: Tedero穿家用路由器IPv6上网 简单的来说: 一)win7下: Netsh int ter set state enterpriseclient 二)再加上hosts,需要翻墙, 用最新浏览器打开 www.google.com 就不会有这种问题了,但可能还是会有其他问题 youtube能进,但视频却看不了 三)over 没成功的例子: 成功后: 网卡连接:ipconfig /all结果 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-端午分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 折腾了两三天之后,居然发现youtube视频无法查看,网站能上, 提示&#8221;出现错误，请稍后重试&#8221; 查看 firebug,发现卡在视频下载地址, 再度google, 终于可以查看了,O&#8230;H 请锰击射这里:]]></description>
			<content:encoded><![CDATA[<p>世上最恶心不过的就是&#8221;连接被重置&#8221;<br />
<img alt="" src="http://www.yesure.net/wp-content/uploads/2010/08/bas.png" class="alignnone" width="617" height="184" /><br />
<img alt="" src="http://www.yesure.net/wp-content/uploads/2010/08/223.png" class="alignnone" width="710" height="294" /></p>
<p>比较可恨的是居然搜索中有个 &#8220;胡 &#8221; 都会被和谐掉,FUCK!!!怒火中烧&#8230;MB,做个技术 的容易吗?忙着加班,还得对付你们这帮孙子满足私利影响所有人带来的不便利&#8230;.有种的,Y的,明目张胆的局域网呀~~~</p>
<p>说正题..</p>
<p>现在win7 下Ipv6可以不用麻烦的翻墙切来切去了&#8230;. <span id="more-279"></span></p>
<p>条件说明:电信2M ADSL,路由无线上网,按网上一些说法, 这种方式是上不了V6的,,其实好像不是 这样&#8230;如下:<br />
<strong>1.要做如下的事:</strong><br />
打开ip helper服务<br />
<a href="http://j.etwong.com/wp-content/uploads/2011/06/0002.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/06/0002.jpg" alt="" width="411" height="168" class="alignnone size-full wp-image-280" /></a><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/06/0003.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/06/0003.jpg" alt="" width="441" height="451" class="alignnone size-full wp-image-281" /></a></p>
<p>打开路由器的upnp<br />
(默认应该是打开的)</p>
<p><strong>2.按照如下办法来做:</strong> <a href="http://neolee.com/web/tedero-ipv6-internet-through-home-router/">Tedero穿家用路由器IPv6上网</a><br />
简单的来说:<br />
一)win7下:</p>
<pre>
Netsh int ter set state enterpriseclient
</pre>
<p>二)再加上hosts,需要翻墙,<br />
用最新浏览器打开 www.google.com 就不会有这种问题了,但可能还是会有其他问题 youtube能进,但视频却看不了</p>
<p>三)over</p>
<p>没成功的例子:<br />
<a href="http://j.etwong.com/wp-content/uploads/2011/06/0004.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/06/0004.jpg" alt="" width="468" height="126" class="alignnone size-full wp-image-282" /></a></p>
<p><strong>成功后:</strong><br />
<a href="http://j.etwong.com/wp-content/uploads/2011/06/0005.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/06/0005.jpg" alt="" width="476" height="219" class="alignnone size-full wp-image-283" /></a></p>
<p>网卡连接:ipconfig /all结果<br />
<a href="http://j.etwong.com/wp-content/uploads/2011/06/0006.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/06/0006.jpg" alt="" width="639" height="351" class="alignnone size-full wp-image-284" /></a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-端午分割线&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>折腾了两三天之后,居然发现youtube视频无法查看,网站能上,<br />
提示&#8221;出现错误，请稍后重试&#8221;<br />
查看 firebug,发现卡在视频下载地址,<br />
再度google,<br />
终于可以查看了,O&#8230;H</p>
<p><a href="http://j.etwong.com/blog-287">请锰击射这里:</a></p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-279/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>遍历对象下的所有可见对象</title>
		<link>http://j.etwong.com/blog-263</link>
		<comments>http://j.etwong.com/blog-263#comments</comments>
		<pubDate>Thu, 26 May 2011 10:29:50 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[currentTarget]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=263</guid>
		<description><![CDATA[WHY？？？ private function showChildren(dispObj:DisplayObjectContainer):void { for (var i:uint = 0; i &#60; dispObj.numChildren; i++) { if (dispObj.getChildAt(i) as DisplayObjectContainer) { var _con:DisplayObjectContainer=dispObj.getChildAt(i) as DisplayObjectContainer; trace(_con.name, _con); showChildren( _con); } else { var _obj:DisplayObject=dispObj.getChildAt(i) as DisplayObject; trace(getQualifiedClassName(_obj)); } } } 6.2.1 target和currentTarget 如我们刚才提到的，在事件被触发后，Flash Player就会创建事件对象，并逐一检查&#8221;事件旅程&#8221;上的节点是否针对发生的事件注册了侦听器，为事件对象赋值，并调用侦听器。事件对象源自flash.events.Event类。事件对象currentTarget属性的值会在事件流中改变，而target属性则不会变化。（关于事件对象，我们将在6.3节（见第106页）深入讨论）由此，开发者能够通过currentTarget属性获知事件旅程现在停在了哪个节点上。 currentTarget属性：事件旅程中，currentTarget属性代表了Flash Player正在检查的节点对象。比如，当Flash Player遍历到ctnButtons对象，那么event.currentTarget就是ctnButtons对象。 target属性：target属性就是发生事件的对象。在信号灯应用中，event.target就是用户所点击的按钮对象，在事件旅程中，该属性的值始终不变。信号灯应用中，侦听器myEventHandler利用event.target来获取被点击按钮上的标签数据。此时赋给event.currentTarget属性的则是HBox容器对象ctnButtons。 flash事件对象的target与currentTarget属性 事件对象是Event类的实例，具有多个属性，其中target与currentTarget属性必须把它们分精楚。 对于一个简单的事件处理过程，分清target与currentTarget并没有必要，因为它们一般指向同一个对象，如对一个简单的mc容器注册侦听器，在处理事件过程中，这两个属性都指向了这个mc。 但在一个相对复杂的display list中，这两属性是不相同的，比如，在主场景中有一个实例名为mc的影片剪辑实例，此mc包含了一个子mc，假设实例名为mc1 如果为父级即mc注册一个click事件侦听器，当单击mc时，target与currentTarget都指向mc，当单击mc1时，target指向mc1，而currentTarget指向mc，因此，在很多应用中，可能有人会认为currentTarget会指向父级。 如果为子级和父级都注册一个侦听器，那target是指单击的目标，而currentTarget是指在处理事件（即活动）的目标，因为as3的事件处理有3个阶段（捕获、目标、冒泡），并且缺省时采用冒泡机制，当单击子级mc1时，currentTarget应先指向底层，并向上冒泡，即先指向mc1，再指向mc 所以，currentTarget属性应具备两条件，一是它注册了侦听器，二是正在处理事件，而target就指事件流中的target。例如，单击了mc1，不管事件如何冒泡（不管currentTarget指向谁），target都指向mc1， [...]]]></description>
			<content:encoded><![CDATA[<p>WHY？？？</p>
<pre>
		private function showChildren(dispObj:DisplayObjectContainer):void {
	        for (var i:uint = 0; i &lt; dispObj.numChildren; i++) {
	                if (dispObj.getChildAt(i) as DisplayObjectContainer) {
	                        var _con:DisplayObjectContainer=dispObj.getChildAt(i) as DisplayObjectContainer;
	                        trace(_con.name,  _con);
	                        showChildren( _con);
	                } else {
	                        var _obj:DisplayObject=dispObj.getChildAt(i) as DisplayObject;
	                        trace(getQualifiedClassName(_obj));
	                }
	        }
		}
</pre>
<p><span id="more-263"></span><br />
6.2.1 target和currentTarget</p>
<p>如我们刚才提到的，在事件被触发后，Flash Player就会创建事件对象，并逐一检查&#8221;事件旅程&#8221;上的节点是否针对发生的事件注册了侦听器，为事件对象赋值，并调用侦听器。事件对象源自flash.events.Event类。事件对象currentTarget属性的值会在事件流中改变，而target属性则不会变化。（关于事件对象，我们将在6.3节（见第106页）深入讨论）由此，开发者能够通过currentTarget属性获知事件旅程现在停在了哪个节点上。</p>
<p>currentTarget属性：事件旅程中，currentTarget属性代表了Flash Player正在检查的节点对象。比如，当Flash Player遍历到ctnButtons对象，那么event.currentTarget就是ctnButtons对象。</p>
<p>target属性：target属性就是发生事件的对象。在信号灯应用中，event.target就是用户所点击的按钮对象，在事件旅程中，该属性的值始终不变。信号灯应用中，侦听器myEventHandler利用event.target来获取被点击按钮上的标签数据。此时赋给event.currentTarget属性的则是HBox容器对象ctnButtons。</p>
<p>flash事件对象的target与currentTarget属性<br />
事件对象是Event类的实例，具有多个属性，其中target与currentTarget属性必须把它们分精楚。<br />
对于一个简单的事件处理过程，分清target与currentTarget并没有必要，因为它们一般指向同一个对象，如对一个简单的mc容器注册侦听器，在处理事件过程中，这两个属性都指向了这个mc。<br />
但在一个相对复杂的display list中，这两属性是不相同的，比如，在主场景中有一个实例名为mc的影片剪辑实例，此mc包含了一个子mc，假设实例名为mc1<br />
如果为父级即mc注册一个click事件侦听器，当单击mc时，target与currentTarget都指向mc，当单击mc1时，target指向mc1，而currentTarget指向mc，因此，在很多应用中，可能有人会认为currentTarget会指向父级。<br />
如果为子级和父级都注册一个侦听器，那target是指单击的目标，而currentTarget是指在处理事件（即活动）的目标，因为as3的事件处理有3个阶段（捕获、目标、冒泡），并且缺省时采用冒泡机制，当单击子级mc1时，currentTarget应先指向底层，并向上冒泡，即先指向mc1，再指向mc<br />
所以，currentTarget属性应具备两条件，一是它注册了侦听器，二是正在处理事件，而target就指事件流中的target。例如，单击了mc1，不管事件如何冒泡（不管currentTarget指向谁），target都指向mc1，<br />
小结：target属性在事件流的目标阶段，而currentTarget属性在事件流的冒泡阶段（如currentTarget有时指父级）和目标阶段（两属性的指向相同），当然也可以是捕获阶段。</p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-263/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>给该死的hp dv3000(3148) win7 装声卡加配置麦克风！</title>
		<link>http://j.etwong.com/blog-254</link>
		<comments>http://j.etwong.com/blog-254#comments</comments>
		<pubDate>Wed, 25 May 2011 14:41:15 +0000</pubDate>
		<dc:creator>J.et wong</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[3148]]></category>
		<category><![CDATA[conexant]]></category>
		<category><![CDATA[hp dv3000]]></category>
		<category><![CDATA[win7]]></category>
		<category><![CDATA[声卡驱动]]></category>

		<guid isPermaLink="false">http://j.etwong.com/?p=254</guid>
		<description><![CDATA[世界上没有被自己女人说男人搞不定电脑问题更没面子的事了．．．． 这不闲的升级一下，把他升级一下win7,按照大伟的办法 装声卡：惠普笔记本Windows 7声卡驱动安装成功 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;注意下载那个 Driver &#8211; Audio (‏2) -&#62;&#62;&#62;&#62; Conexant High Definition Audio Driver (2007-4这个），另一个不知道什么东东 －－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－ 按这个步骤安装完成之后，基本上能用了，也能放歌了，我就没管他 女人说和小舅子视频聊天，说这个win7不好用，连个麦克风都不能用．．．． 我那个汗．．．．怎么可能，但确实，在设备管理好几个不认的设备．．．． 我去按录音，确实不能录麦克风！！！！不会吧．．．．．但能录内音，搞搞，怎么回事，后来发现是设置的问题 １.打开设置 2.禁用他 3.KO!有木有！！]]></description>
			<content:encoded><![CDATA[<p>世界上没有被自己女人说男人搞不定电脑问题更没面子的事了．．．．</p>
<p>这不闲的升级一下，把他升级一下win7,按照大伟的办法</p>
<p>装声卡：<a href="http://www.oneflash.net/2009/11/conexant-hdaudio-driver-win7/" target="_blank">惠普笔记本Windows 7声卡驱动安装成功</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;注意下载那个<br />
Driver &#8211; Audio (‏2) -&gt;&gt;&gt;&gt;<br />
Conexant High Definition Audio Driver (2007-4这个），另一个不知道什么东东<br />
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－</p>
<p>按这个步骤安装完成之后，基本上能用了，也能放歌了，我就没管他</p>
<p>女人说和小舅子视频聊天，说这个win7不好用，连个麦克风都不能用．．．．</p>
<p>我那个汗．．．．怎么可能，但确实，在设备管理好几个不认的设备．．．．</p>
<p>我去按录音，确实不能录麦克风！！！！不会吧．．．．．但能录内音，搞搞，怎么回事，后来发现是设置的问题</p>
<p>１.打开设置</p>
<p><a href="http://j.etwong.com/wp-content/uploads/2011/05/打开设置.png"><img src="http://j.etwong.com/wp-content/uploads/2011/05/打开设置.png" alt="" width="227" height="157" class="alignnone size-full wp-image-255" /></a></p>
<p>2.禁用他</p>
<p><a href="http://j.etwong.com/wp-content/uploads/2011/05/禁用他.png"><img src="http://j.etwong.com/wp-content/uploads/2011/05/禁用他.png" alt="" width="478" height="442" class="alignnone size-full wp-image-256" /></a></p>
<p>3.KO!有木有！！</p>
<p><a href="http://j.etwong.com/wp-content/uploads/2011/05/0001.jpg"><img src="http://j.etwong.com/wp-content/uploads/2011/05/0001.jpg" alt="" width="397" height="96" class="alignnone size-full wp-image-257" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://j.etwong.com/blog-254/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

