<?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>Jimmy&#039;s Blog &#187; Flash</title>
	<atom:link href="http://www.jimmy.sh/category/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jimmy.sh</link>
	<description>Live in code! Inspired genuine trusted</description>
	<lastBuildDate>Fri, 09 Jul 2010 06:43:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>越狱IPad安装Flash player 10.1详细方法</title>
		<link>http://www.jimmy.sh/flash/%e8%b6%8a%e7%8b%b1ipad%e5%ae%89%e8%a3%85flash-player-10-1%e8%af%a6%e7%bb%86%e6%96%b9%e6%b3%95.html</link>
		<comments>http://www.jimmy.sh/flash/%e8%b6%8a%e7%8b%b1ipad%e5%ae%89%e8%a3%85flash-player-10-1%e8%af%a6%e7%bb%86%e6%96%b9%e6%b3%95.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 18:40:27 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1689</guid>
		<description><![CDATA[某技术威武，开了个开源项目frash，目的就只有一个把Android系统的Flash Player 10.1移植到IPad，现在已经出了第一个版本，IPad可以使用了，未来也将会支持IPhone 3GS，iPhone 4等，废话少说先上图，再教程 第一步，下载Frash，下载右键另存为 第二步，下载同步软件，Window用winscp，Mac我用的是iPhone Explorer 这个也有Windows 不过没用过 第三步，打开Cydia-&#62;Search-&#62;搜索OpenSSH并安装 第四步，继续搜索SBSettings并安装 这一步的时候我遇到一个情况是重启几次都进步去，当时把我吓到了，不过没关系，关机键和Home一起按一次，重启就OK了 第五步，在Cydia-&#62;Manage-&#62;Sources-&#62;添加http://sinfuliphonerepo.com 第六步，进入刚刚添加的Sinful源，找到iFile Cracked并安装 第七步，上传安装文件到IPad，我看的教程上说是上传到/var/root/Media/Cydia/AutoInstall，但是实际其实哪里都可以，如果你是mac用iPhone Explorer的话，文件夹自己在mac下建立好，然后复制到Media就行 windows用WinScP，不会的自己搜索下教程吧 第八步，启动你刚刚装的软件iFile，用它找到你放的Frash.deb安装文件，点击安装 看到这个图，最后写的是0，那么就安装成功了，立刻启动safari去试试吧（理论上要重启，其实不用） 要看实际效果的话，更多里面有截图 安装好后，有flash的部分会先有个图片 点击图片flash才被显示出来 Flash游戏（AS2写的很小的还能玩下，大多数不正常，效率很低） 再看看浏览Flash AS3 的全站的情况，一样是先有个图标 还算较正常显示，不过底部没了，很卡 显示视频，youku视频显示不了 土豆也一样 六间房，太牛了，尽然可以播放，只是位子不对，不知道技术有什么不一样？]]></description>
			<content:encoded><![CDATA[<p>某技术威武，开了个<a href="http://github.com/comex/frash">开源项目frash</a>，目的就只有一个把Android系统的Flash Player 10.1移植到IPad，现在已经出了第一个版本，IPad可以使用了，未来也将会支持IPhone 3GS，iPhone 4等，废话少说先上图，再教程</p>
<p>第一步，下载Frash，<a href="http://stadium.weblogsinc.com/engadget/files/Frash-0.01.deb">下载右键另存为</a></p>
<p>第二步，下载同步软件，Window用winscp，Mac我用的是<a href="http://www.macroplant.com/iphoneexplorer/" target="_blank">iPhone Explorer</a> 这个也有Windows 不过没用过</p>
<p>第三步，打开Cydia-&gt;Search-&gt;搜索OpenSSH并安装</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0023" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0023.png" alt="" width="650" height="866" /><br />
<img class="alignnone size-full wp-image-1707" title="IMG_0028" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0028.png" alt="" width="650" height="866" /></p>
<p>第四步，继续搜索SBSettings并安装</p>
<p>这一步的时候我遇到一个情况是重启几次都进步去，当时把我吓到了，不过没关系，关机键和Home一起按一次，重启就OK了</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0024" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0024.png" alt="" width="650" height="866" /></p>
<p>第五步，在Cydia-&gt;Manage-&gt;Sources-&gt;添加http://sinfuliphonerepo.com</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0025" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0025.png" alt="" width="650" height="866" /></p>
<p>第六步，进入刚刚添加的Sinful源，找到iFile Cracked并安装</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0026" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0026.png" alt="" width="650" height="866" /></p>
<p>第七步，上传安装文件到IPad，我看的教程上说是上传到/var/root/Media/Cydia/AutoInstall，但是实际其实哪里都可以，如果你是mac用iPhone Explorer的话，文件夹自己在mac下建立好，然后复制到Media就行</p>
<p>windows用WinScP，不会的自己搜索下教程吧</p>
<p>第八步，启动你刚刚装的软件iFile，用它找到你放的Frash.deb安装文件，点击安装</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0027" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0027.png" alt="" width="650" height="866" /></p>
<p>看到这个图，最后写的是0，那么就安装成功了，立刻启动safari去试试吧（理论上要重启，其实不用）<br />
<img class="alignnone size-medium wp-image-1707" title="IMG_0028" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0028.png" alt="" width="650" height="866" /></p>
<p>要看实际效果的话，更多里面有截图</p>
<p><span id="more-1689"></span></p>
<p>安装好后，有flash的部分会先有个图片</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0015" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0015.png" alt="" width="650" height="487" /></p>
<p>点击图片flash才被显示出来</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0016" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0016.png" alt="" width="650" height="487" /></p>
<p>Flash游戏（AS2写的很小的还能玩下，大多数不正常，效率很低）</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0021" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0021.png" alt="" width="650" height="487" /></p>
<p>再看看浏览Flash AS3 的全站的情况，一样是先有个图标<br />
<img class="alignnone size-full wp-image-1707" title="IMG_0013" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0013.png" alt="" width="650" height="487" /></p>
<p>还算较正常显示，不过底部没了，很卡</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0014" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0014.png" alt="" width="650" height="487" /></p>
<p>显示视频，youku视频显示不了</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0020" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0020.png" alt="" width="650" height="487" /></p>
<p>土豆也一样</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0019" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0019.png" alt="" width="650" height="487" /></p>
<p>六间房，太牛了，尽然可以播放，只是位子不对，不知道技术有什么不一样？</p>
<p><img class="alignnone size-full wp-image-1707" title="IMG_0018" src="http://www.jimmy.sh/wp-content/uploads/2010/07/IMG_0018.png" alt="" width="650" height="487" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/%e8%b6%8a%e7%8b%b1ipad%e5%ae%89%e8%a3%85flash-player-10-1%e8%af%a6%e7%bb%86%e6%96%b9%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>第四期FLASH专家交流会 7月24日 广州东方国际饭店</title>
		<link>http://www.jimmy.sh/flash/swfsh.html</link>
		<comments>http://www.jimmy.sh/flash/swfsh.html#comments</comments>
		<pubDate>Tue, 06 Jul 2010 16:27:48 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1683</guid>
		<description><![CDATA[第四期FLASH专家交流会 7月24日 广州东方国际饭店 活动主题: 新技术和开发经验 免费参加，座位有限，报名请点击 SWFSH.COM 中国FLASH开发者交流会是一个双月定期举行的开发者交流会，在上海已经成功的举办了三届了，共有近600名FLASH专业开发者参加。 7月24日，第四届FLASH开发者交流会将于广州东方国际饭店举行，这次将聚集来自广东、深圳、厦门地区的近两百位FLASH开发者出席，这次会议议程主要是对Flash-MMORPG游戏引擎及工具开发概述、Flash游戏应用框架和模块开发、Flash的Socket通讯等几方面的剖析。 想了解活动议程，请登录活动网站http://www.swfsh.com 请关注我们的QQ群（77468146）以了解更多关于交流会活动的最新信息 活动地点：广州市广州大道中1418号，广州东方国际饭店13楼A厅 酒店电话：020-37233888]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste">
<div id="_mcePaste"><span style="font-family: Arial, sans-serif; line-height: 22px; font-size: 14px; color: #333333;"></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;"><strong>第四期</strong><strong>FLASH</strong><strong>专家交流会</strong><strong> 7</strong><strong>月</strong><strong>24</strong><strong>日</strong><strong> </strong><strong>广州东方国际饭店</strong><strong> </strong></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;"><strong>活动主题</strong><strong>:</strong> <strong>新技术和开发经验</strong><strong></strong></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;"><a style="color: #cc0000; text-decoration: none;" href="http://www.swfsh.com/" target="_blank"><strong>免费参加，座位有限，</strong><strong>报名请点击</strong><strong> SWFSH.COM</strong></a></p>
<p></span></div>
<div id="_mcePaste"><span style="font-family: Arial, sans-serif; line-height: 22px; font-size: 14px; color: #333333;"><a style="color: #cc0000; text-decoration: none;" href="http://www.swfsh.com/" target="_blank"><img style="border: initial none initial;" src="http://www.xncat.com/wp-content/uploads/2010/07/!cid_image001.jpg@01CB1A0C.jpg" alt="" /></a></span></div>
<div id="_mcePaste"></div>
<div id="_mcePaste"><span style="font-family: Arial, sans-serif; line-height: 22px; font-size: 14px; color: #333333;"></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;">中国FLASH开发者交流会是一个双月定期举行的开发者交流会，<a style="color: #cc0000; text-decoration: none;" href="http://events.swfsh.com/" target="_blank">在上海已经成功的举办了三届了，共有近600名FLASH专业开发者参加。</a></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;">7月24日，第四届FLASH开发者交流会将于广州东方国际饭店举行，这次将聚集来自广东、深圳、厦门地区的近两百位FLASH开发者出席，这次会议议程主要是对<strong><span style="text-decoration: underline;">Flash-MMORPG游戏引擎及工具开发概述、Flash游戏应用框架和模块开发、Flash的Socket通讯</span></strong>等几方面的剖析。</p>
<p style="font-size: 14px; font-family: Arial, sans-serif;">想了解活动议程，请登录活动网站<a style="color: #cc0000; text-decoration: none;" href="http://www.swfsh.com/" target="_blank">http://www.swfsh.com</a></p>
<p style="font-size: 14px; font-family: Arial, sans-serif;">请关注我们的QQ群（77468146）以了解更多关于交流会活动的最新信息</p>
<p style="font-size: 14px; font-family: Arial, sans-serif;"><strong>活动地点：</strong>广州市广州大道中1418号，广州东方国际饭店13楼A厅</p>
<p style="font-size: 14px; font-family: Arial, sans-serif;"><strong>酒店电话：</strong>020-37233888</p>
<p></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/swfsh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash 原型开发</title>
		<link>http://www.jimmy.sh/flash/flash-%e5%8e%9f%e5%9e%8b%e5%bc%80%e5%8f%91.html</link>
		<comments>http://www.jimmy.sh/flash/flash-%e5%8e%9f%e5%9e%8b%e5%bc%80%e5%8f%91.html#comments</comments>
		<pubDate>Mon, 31 May 2010 15:58:10 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1678</guid>
		<description><![CDATA[上个礼拜天在Flash开发者大会做了次演讲，简单介绍了下我从事的职业，这里共享下我的PPT Flash 原型开发（刘磊） View more presentations from FLASH开发者交流会.]]></description>
			<content:encoded><![CDATA[<div id="__ss_4358529" style="width: 425px;">上个礼拜天在<a href="http://swfsh.com/" target="_blank">Flash开发者大会</a>做了次演讲，简单介绍了下我从事的职业，这里共享下我的PPT</div>
<div style="width: 425px;"></div>
<div style="width: 425px;"><strong><a title="Flash 原型开发（刘磊）" href="http://www.slideshare.net/swfsh/flash-4358529">Flash 原型开发（刘磊）</a></strong><object id="__sse4358529" 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=flash-100531002607-phpapp01&amp;stripped_title=flash-4358529" /><param name="name" value="__sse4358529" /><param name="allowfullscreen" value="true" /><embed id="__sse4358529" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=flash-100531002607-phpapp01&amp;stripped_title=flash-4358529" name="__sse4358529" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<div id="__ss_4358529" style="width: 425px;">
<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://www.jimmy.sh/flash/flash-%e5%8e%9f%e5%9e%8b%e5%bc%80%e5%8f%91.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>HTC Desire 到手</title>
		<link>http://www.jimmy.sh/flash/htc-desire-flash-player-10-1.html</link>
		<comments>http://www.jimmy.sh/flash/htc-desire-flash-player-10-1.html#comments</comments>
		<pubDate>Tue, 27 Apr 2010 13:21:50 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1671</guid>
		<description><![CDATA[传说中播放器版本为Flash 10.1的HTC Desire到手，刚刚测试了下，大多数flash都能播放，性能还不错，出现一次假死现象，不知道是不是自己操作不当，兄弟们直接看图吧 直接看到的程序信息 我用浏览器浏览flash得到的信息 外观界面 用HTC Desire播放牛X的flash 3D网站，底部有点问题，估计是因为图片应用的滤镜不支持吧 等了会进去了，左右两边不知道为什么有bug 动起来还算流畅，左右两边就一直保持这样了]]></description>
			<content:encoded><![CDATA[<p>传说中播放器版本为Flash 10.1的HTC Desire到手，刚刚测试了下，大多数flash都能播放，性能还不错，出现一次假死现象，不知道是不是自己操作不当，兄弟们直接看图吧</p>
<p>直接看到的程序信息<br />
<img src="http://farm5.static.flickr.com/4064/4557156673_d37be2a2d6.jpg" alt="关于" /></p>
<p>我用浏览器浏览flash得到的信息<br />
<img src="http://farm4.static.flickr.com/3257/4557156149_382e6c8e4e.jpg" alt="用flash程序看到的版本" /></p>
<p>外观界面<br />
<img src="http://farm4.static.flickr.com/3611/4557156461_8f114b3dac.jpg" alt="外观" /></p>
<p>用HTC Desire播放牛X的flash 3D网站，底部有点问题，估计是因为图片应用的滤镜不支持吧<br />
<img src="http://farm4.static.flickr.com/3078/4557788960_8e525f0605.jpg" alt="播放牛X的3D网站" /></p>
<p>等了会进去了，左右两边不知道为什么有bug<br />
<img src="http://farm4.static.flickr.com/3403/4557157193_ec9df5542b.jpg" alt="进去了" /></p>
<p>动起来还算流畅，左右两边就一直保持这样了<br />
<img src="http://farm4.static.flickr.com/3641/4557157523_c1ace68877.jpg" alt="能动起来" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/htc-desire-flash-player-10-1.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>最近收到的简历很强大</title>
		<link>http://www.jimmy.sh/flash/%e6%9c%80%e8%bf%91%e6%94%b6%e5%88%b0%e7%9a%84%e7%ae%80%e5%8e%86%e5%be%88%e5%bc%ba%e5%a4%a7.html</link>
		<comments>http://www.jimmy.sh/flash/%e6%9c%80%e8%bf%91%e6%94%b6%e5%88%b0%e7%9a%84%e7%ae%80%e5%8e%86%e5%be%88%e5%bc%ba%e5%a4%a7.html#comments</comments>
		<pubDate>Wed, 17 Mar 2010 07:52:32 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1662</guid>
		<description><![CDATA[不知道为什么，现在刚毕业的小朋友真的好牛X，简历里连Flash都没提到就敢应聘Flash Developer.邮件里只是基本信息，连一个作品都没提到就敢发500强企业了。 设想当初我连flash这个技能都不敢写在简历里，因为觉得自己不是很会。 哎～ 这个世道真的变了，希望未来想从事Flash开发行业的童鞋们，一定要多学学练练，不要半桶水都没有呢，就想着出来赚钱了，请认真对待你的职业。 学Java,C++的朋友们，flash as3.0虽然跟Java，C++很像，但是也不至于简单到你会Java，C++就是会flash的地步，我会flash我怎么不会Java和C++呢？请专注于你们自己的程序，不是公司找Flash的多，你们就来做Flash了，也请认真对待你们自己的职业吧。 今天有些抱怨，因为flash开发被人当成简单的东西，甚至于不尊重。所以告诫那些口头说热爱flash的同学们，flash其实不简单，别随随便便说自己是个flash程序员。我做这么多年了，都还觉得自己是还是个小菜。]]></description>
			<content:encoded><![CDATA[<p>不知道为什么，现在刚毕业的小朋友真的好牛X，简历里连Flash都没提到就敢应聘Flash Developer.邮件里只是基本信息，连一个作品都没提到就敢发500强企业了。</p>
<p>设想当初我连flash这个技能都不敢写在简历里，因为觉得自己不是很会。</p>
<p>哎～ 这个世道真的变了，希望未来想从事Flash开发行业的童鞋们，一定要多学学练练，不要半桶水都没有呢，就想着出来赚钱了，请认真对待你的职业。</p>
<p>学Java,C++的朋友们，flash as3.0虽然跟Java，C++很像，但是也不至于简单到你会Java，C++就是会flash的地步，我会flash我怎么不会Java和C++呢？请专注于你们自己的程序，不是公司找Flash的多，你们就来做Flash了，也请认真对待你们自己的职业吧。</p>
<p>今天有些抱怨，因为flash开发被人当成简单的东西，甚至于不尊重。所以告诫那些口头说热爱flash的同学们，flash其实不简单，别随随便便说自己是个flash程序员。我做这么多年了，都还觉得自己是还是个小菜。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/%e6%9c%80%e8%bf%91%e6%94%b6%e5%88%b0%e7%9a%84%e7%ae%80%e5%8e%86%e5%be%88%e5%bc%ba%e5%a4%a7.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>flash CS5开发iPhone应用［2.多点触摸(Multi-touch)］</title>
		<link>http://www.jimmy.sh/flash/flash-cs5-iphone-multi-touc.html</link>
		<comments>http://www.jimmy.sh/flash/flash-cs5-iphone-multi-touc.html#comments</comments>
		<pubDate>Fri, 08 Jan 2010 15:02:38 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash CS5]]></category>
		<category><![CDATA[Flash多点触摸]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Multi-Touch]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1551</guid>
		<description><![CDATA[iPhone刚出来的时候最让我惊喜的莫过于多点触摸(Multi-touch)和手势，酷的一塌糊涂。超多游戏好应用使用了多点触摸技术，废话不多，来看看在Flash cs5中如何实现多点触摸。 这些在Flash cs5中都可以轻松实现。 AS新增加类包 flash.events.TouchEvent; 多点触摸事件 Property： altKey : Boolean //设置Alt键激活与否 commandKey : Boolean //设置Command键激活与否 controlKey : Boolean //设置Control键激活与否 ctrlKey : Boolean //设置Ctrl键激活与否 isPrimaryTouchPoint : Boolean //接触的第一个点是否被看成鼠标事件 isRelatedObjectInaccessible : Boolean //安全设置 localX : Number //相对x坐标 localY : Number //相对y坐标 pressure : Number //于设备接触的压力 relatedObject : InteractiveObject// 显示相关的Object shiftKey : Boolean// 设置ShiftKey键激活与否 sizeX : Number// [...]]]></description>
			<content:encoded><![CDATA[<p>iPhone刚出来的时候最让我惊喜的莫过于多点触摸(Multi-touch)和手势，酷的一塌糊涂。超多游戏好应用使用了多点触摸技术，废话不多，来看看在Flash cs5中如何实现多点触摸。</p>
<p>这些在Flash cs5中都可以轻松实现。</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">AS新增加类包  <span style="color: #004993;">flash.events</span>.TouchEvent; 多点触摸事件
Property：
<span style="color: #004993;">altKey</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//设置Alt键激活与否</span>
commandKey <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//设置Command键激活与否</span>
controlKey <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//设置Control键激活与否</span>
<span style="color: #004993;">ctrlKey</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//设置Ctrl键激活与否</span>
isPrimaryTouchPoint <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//接触的第一个点是否被看成鼠标事件</span>
isRelatedObjectInaccessible <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//安全设置</span>
<span style="color: #004993;">localX</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span>  <span style="color: #009900;">//相对x坐标</span>
<span style="color: #004993;">localY</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span>  <span style="color: #009900;">//相对y坐标</span>
pressure <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900;">//于设备接触的压力</span>
<span style="color: #004993;">relatedObject</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">InteractiveObject</span><span style="color: #009900;">// 显示相关的Object</span>
<span style="color: #004993;">shiftKey</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span><span style="color: #009900;">// 设置ShiftKey键激活与否</span>
sizeX <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span><span style="color: #009900;">// 触摸时的宽度</span>
sizeY <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900;">//触摸时高度</span>
<span style="color: #004993;">stageX</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900;">//全局X坐标</span>
<span style="color: #004993;">stageY</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900;">//全局Y坐标</span>
touchPointID <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">int</span> <span style="color: #009900;">//接触点的ID识别码</span>
&nbsp;
Methods：
TouchEvent
&nbsp;
AS新增加类包 <span style="color: #004993;">flash.ui</span>.Multitouch; 多点触摸管理类
inputMode <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">String</span>  <span style="color: #009900;">//触摸事件的处理模式（多点或是手势）</span>
maxTouchPoints <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">int</span>  <span style="color: #009900;">//当前环境所支持同时进行的接触点的最大数量</span>
supportedGestures <span style="color: #000000; font-weight: bold;">:</span> Vector. <span style="color: #009900;">//当前环境所支持多接触的类型</span>
supportsGestureEvents <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//当前环境是否支持手势</span>
supportsTouchEvents <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900;">//当前环境是否支持基本的触摸</span></pre></div></div>

<table style="cursor: default; background-color: #ffffff; border-collapse: collapse; border: 1px dashed #bbbbbb;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="color: #000000; font-size: 11px; cursor: text; width: 124px; height: 14px; background-color: #f5fbff; padding: 5px; margin: 8px; border: 1px dashed #bbbbbb;" valign="top"><span style="letter-spacing: 0px;">实例下载</span></td>
<td style="color: #000000; font-size: 11px; cursor: text; width: 124px; height: 14px; background-color: #f5fbff; padding: 5px; margin: 8px; border: 1px dashed #bbbbbb;" valign="top"><span style="letter-spacing: 0px;">原文件</span></td>
<td style="color: #000000; font-size: 11px; cursor: text; width: 149px; height: 14px; background-color: #f5fbff; padding: 5px; margin: 8px; border: 1px dashed #bbbbbb;" valign="top"><span style="letter-spacing: 0px;">ipa</span></td>
</tr>
<tr>
<td style="color: #000000; font-size: 11px; cursor: text; width: 124px; height: 14px; background-color: #ffffff; padding: 5px; margin: 8px; border: 1px dashed #bbbbbb;" valign="top">多点触摸</td>
<td style="color: #000000; font-size: 11px; cursor: text; width: 124px; height: 14px; background-color: #ffffff; padding: 5px; margin: 8px; border: 1px dashed #bbbbbb;" valign="top"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2010/01/Multi-touch.zip">Multi-touch</a></span></td>
<td style="width: 149px; height: 14px; background-color: #ffffff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; color: #001fa9; margin: 0px;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2010/01/Multi-touch-test.ipa">Multi-touch-test.ipa</a></span></p>
</td>
</tr>
</tbody>
</table>
<div id="attachment_1557" class="wp-caption alignnone" style="width: 330px"><a href="http://www.jimmy.sh/wp-content/uploads/2010/01/IMG_0350.PNG"><img class="size-full wp-image-1557" title="IMG_0350" src="http://www.jimmy.sh/wp-content/uploads/2010/01/IMG_0350.PNG" alt="IMG_0350" width="320" height="480" /></a><p class="wp-caption-text">截图</p></div>
<p>源代码<br />
<span id="more-1551"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #3f5fbf;">/* @author jimmy
 * www.jimmy.sh
*/</span>
<span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">DisplayObject</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.TouchEvent;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span>.Multitouch;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span>.MultitouchInputMode;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> main extends <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>	
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s1<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s3<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s4<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s5<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s6<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>;
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #6699cc; font-weight: bold;">var</span> touchMap<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Array</span>= <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span>;
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #6699cc; font-weight: bold;">var</span> touchMc<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Array</span>;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			touchMc=<span style="color: #000000;">&#91;</span>s1,s2,s3,s4,s5,s6<span style="color: #000000;">&#93;</span>;
			<span style="color: #009900;">//多点触摸类型</span>
			Multitouch.inputMode=MultitouchInputMode.TOUCH_POINT;
			<span style="color: #009900;">//添加3个多点触摸事件</span>
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH_BEGIN,touchBeginHandler<span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH_END,touchEndHandler<span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent.TOUCH_MOVE,touchMoveHandler<span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900;">//触摸开始事件</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> touchBeginHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">DisplayObject</span><span style="color: #000000;">&#40;</span>event.<span style="color: #004993;">target</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			touchMc.<span style="color: #004993;">sort</span><span style="color: #000000;">&#40;</span>depthFunction<span style="color: #000000;">&#41;</span>;
			<span style="color: #6699cc; font-weight: bold;">var</span> touchPoint<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span>=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>;
			touchMap<span style="color: #000000;">&#91;</span>event.touchPointID<span style="color: #000000;">&#93;</span> =touchPoint;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900;">//根据深度排序，为了让判断的时候先判断前面的物体</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> depthFunction<span style="color: #000000;">&#40;</span>a<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>,<span style="color: #004993;">b</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">int</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">getChildIndex</span><span style="color: #000000;">&#40;</span>a<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;getChildIndex<span style="color: #000000;">&#40;</span><span style="color: #004993;">b</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span>;
				<span style="color: #000000;">&#125;</span><span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span>
					<span style="color: #0033ff; font-weight: bold;">return</span> <span style="color: #000000; font-weight:bold;">1</span>;
				<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900;">//触摸事件结束事件</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> touchEndHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">delete</span> touchMap<span style="color: #000000;">&#91;</span>event.touchPointID<span style="color: #000000;">&#93;</span>;
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900;">//触摸点移动事件</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> touchMoveHandler<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> key <span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">int</span> =event.touchPointID;
			<span style="color: #009900;">//判断触摸到那个mc，并让mc跟着手指移动</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>touchMap<span style="color: #000000;">&#91;</span>key<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">for</span><span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span>;i<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight:bold;">6</span>;i<span style="color: #000000; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					<span style="color: #6699cc; font-weight: bold;">var</span> _mc<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span>=touchMc<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>;
					<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>_mc.<span style="color: #004993;">hitTestPoint</span><span style="color: #000000;">&#40;</span> event.<span style="color: #004993;">stageX</span>,event.<span style="color: #004993;">stageY</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
						<span style="color: #000000;">&#123;</span>
							_mc.<span style="color: #004993;">x</span>=event.<span style="color: #004993;">stageX</span>;
							_mc.<span style="color: #004993;">y</span>=event.<span style="color: #004993;">stageY</span>;
							<span style="color: #0033ff; font-weight: bold;">break</span>;
						<span style="color: #000000;">&#125;</span>;
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-cs5-iphone-multi-touc.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>这个flash应用很神</title>
		<link>http://www.jimmy.sh/flash/en-tackfilm-se.html</link>
		<comments>http://www.jimmy.sh/flash/en-tackfilm-se.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 09:06:14 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1546</guid>
		<description><![CDATA[大家注意，下面出场的可是大人物～ 没看懂的请回复，呵呵]]></description>
			<content:encoded><![CDATA[<p>大家注意，下面出场的可是大人物～ 没看懂的请回复，呵呵</p>
<p><object width="560" height="325"><param name="movie" value="http://en.tackfilm.se/loader.swf?shareID=1262163368139RA62&#038;folder=12621"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://en.tackfilm.se/loader.swf?shareID=1262163368139RA62&#038;folder=12621" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="325"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/en-tackfilm-se.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>flash CS5开发iPhone应用［1.水平感应］</title>
		<link>http://www.jimmy.sh/flash/flash-cs5-iphone-accelerometer.html</link>
		<comments>http://www.jimmy.sh/flash/flash-cs5-iphone-accelerometer.html#comments</comments>
		<pubDate>Fri, 25 Dec 2009 13:57:22 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Accelerometer]]></category>
		<category><![CDATA[Flash CS5]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1476</guid>
		<description><![CDATA[在iPhone应用中，又很多游戏是使用水平感应（重力感应）来控制的，比较有意思的如Doodle Jump,Space Ball等，还有些赛车游戏直接把iPhone模拟成方向盘，转动你的iPhone来控制方向。 这些在Flash cs5中都可以轻松实现。 AS新增加类包 flash.sensors.Accelerometer 加速度传感器 Property： isSupported : Boolean －静态变量，返回机器是否支持加速度感应 Methods： Accelerometer() －创建加速度感应器 setRequestedUpdateInterval(interval:Number):void － 设置判断加速度的更新时间间隔 Events： update －加速度更新事件 update发生后返回的3个参数 accelerationX－x轴的加速度 accelerationY－Y轴的加速度 accelerationZ－Z轴的加速度(负数表示iPhone为正面朝上，正数则是反面朝上) 实例下载 原文件 ipa 加速度 Accelerometer Accelerometer.ipa 实例源代码 /* @author jimmy * www.jimmy.sh */ import flash.display.Sprite; import flash.events.AccelerometerEvent; import flash.events.Event; import flash.sensors.Accelerometer; import flash.text.TextField; import flash.text.TextFieldAutoSize; &#160; //3个方向的加速度 var accX:Number=0; [...]]]></description>
			<content:encoded><![CDATA[<p>在iPhone应用中，又很多游戏是使用水平感应（重力感应）来控制的，比较有意思的如Doodle<br />
Jump,Space Ball等，还有些赛车游戏直接把iPhone模拟成方向盘，转动你的iPhone来控制方向。</p>
<p>这些在Flash cs5中都可以轻松实现。</p>
<p>AS新增加类包 f<span style="color: #333399;">lash.sensors.Accelerometer</span> 加速度传感器</p>
<p>Property：<br />
<span style="color: #333399;"> isSupported</span> : <span style="color: #800000;">Boolean</span> －静态变量，返回机器是否支持加速度感应</p>
<p>Methods：</p>
<p><span style="color: #333399;">Accelerometer</span>() －创建加速度感应器</p>
<p><span style="color: #333399;">setRequestedUpdateInterval</span>(<span style="color: #800000;">interval:Number</span>):void － 设置判断加速度的更新时间间隔</p>
<p>Events：</p>
<p><span style="color: #333399;">update</span> －加速度更新事件</p>
<p>update发生后返回的3个参数</p>
<p><span style="color: #333399;">accelerationX</span>－x轴的加速度</p>
<p><span style="color: #333399;">accelerationY</span>－Y轴的加速度</p>
<p><span style="color: #333399;">accelerationZ</span>－Z轴的加速度(负数表示iPhone为正面朝上，正数则是反面朝上)</p>
<table style="background-color: #ffffff; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 124px; height: 14px; background-color: #f5fbff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; margin: 0px;"><span style="letter-spacing: 0px;">实例下载</span></p>
</td>
<td style="width: 124px; height: 14px; background-color: #f5fbff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; margin: 0px;"><span style="letter-spacing: 0px;">原文件</span></p>
</td>
<td style="width: 149px; height: 14px; background-color: #f5fbff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; margin: 0px;"><span style="letter-spacing: 0px;">ipa</span></p>
</td>
</tr>
<tr>
<td style="width: 124px; height: 14px; background-color: #ffffff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; margin: 0px;">加速度</p>
</td>
<td style="width: 124px; height: 14px; background-color: #ffffff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; color: #001fa9; margin: 0px;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/Accelerometer.zip">Accelerometer</a></span></p>
</td>
<td style="width: 149px; height: 14px; background-color: #ffffff; padding: 5px;" valign="top">
<p style="line-height: 19px; font: normal normal normal 12px/normal Helvetica; color: #001fa9; margin: 0px;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/Accelerometer.ipa.zip">Accelerometer.ipa</a></span></p>
</td>
</tr>
</tbody>
</table>
<p><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/IMG_0308.PNG"><img style="border: 0px initial initial;" title="加速度" src="http://www.jimmy.sh/wp-content/uploads/2009/12/IMG_0308.PNG" alt="加速度" width="320" height="480" /></a><br />
实例源代码<br />
<span id="more-1476"></span></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #3f5fbf;">/* @author jimmy
 * www.jimmy.sh
*/</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">Sprite</span>;
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.AccelerometerEvent;
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">Event</span>;
<span style="color: #0033ff; font-weight: bold;">import</span> flash.sensors.Accelerometer;
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextField</span>;
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.text</span>.<span style="color: #004993;">TextFieldAutoSize</span>;
&nbsp;
<span style="color: #009900;">//3个方向的加速度</span>
<span style="color: #6699cc; font-weight: bold;">var</span> accX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=<span style="color: #000000; font-weight:bold;">0</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> accY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=<span style="color: #000000; font-weight:bold;">0</span>;
<span style="color: #6699cc; font-weight: bold;">var</span> accZ<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=<span style="color: #000000; font-weight:bold;">0</span>;
<span style="color: #009900;">//更新加速度</span>
<span style="color: #339966; font-weight: bold;">function</span> update<span style="color: #000000;">&#40;</span>e<span style="color: #000000; font-weight: bold;">:</span>AccelerometerEvent<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
	accX=e.accelerationX;
	accY=e.accelerationY;
	accZ=e.accelerationZ;
<span style="color: #000000;">&#125;</span>
<span style="color: #009900;">//更新现实</span>
<span style="color: #339966; font-weight: bold;">function</span> Show<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Event</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> <span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> ballX<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=ball.<span style="color: #004993;">x</span><span style="color: #000000; font-weight: bold;">+</span>accX<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">50</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> ballY<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=ball.y<span style="color: #000000; font-weight: bold;">-</span>accY<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">50</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> dx<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=ballX<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">160</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> dy<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=ballY<span style="color: #000000; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">240</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> jd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=<span style="color: #004993;">Math</span>.<span style="color: #004993;">atan2</span><span style="color: #000000;">&#40;</span>dy,dx<span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">d</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>=<span style="color: #004993;">Math</span>.<span style="color: #004993;">sqrt</span><span style="color: #000000;">&#40;</span>dx<span style="color: #000000; font-weight: bold;">*</span>dx<span style="color: #000000; font-weight: bold;">+</span>dy<span style="color: #000000; font-weight: bold;">*</span>dy<span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>d<span style="color: #000000; font-weight: bold;">&amp;</span>lt;=<span style="color: #000000; font-weight:bold;">120</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
		ball.<span style="color: #004993;">x</span>=ballX;
		ball.<span style="color: #004993;">y</span>=ballY;
	<span style="color: #000000;">&#125;</span> <span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #000000;">&#123;</span>
		<span style="color: #004993;">d</span>=<span style="color: #000000; font-weight:bold;">120</span>;
		ball.<span style="color: #004993;">x</span>=<span style="color: #004993;">Math</span>.<span style="color: #004993;">cos</span><span style="color: #000000;">&#40;</span>jd<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">160</span>;
		ball.<span style="color: #004993;">y</span>=<span style="color: #004993;">Math</span>.<span style="color: #004993;">sin</span><span style="color: #000000;">&#40;</span>jd<span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">240</span>;
	<span style="color: #000000;">&#125;</span>
	<span style="color: #009900;">//设定球的大小</span>
	ball.<span style="color: #004993;">width</span>=ball.<span style="color: #004993;">height</span>=<span style="color: #004993;">d</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">30</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">10</span>;
	<span style="color: #009900;">//更新文字</span>
	textX.<span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;accelerationX: &quot;</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span>accX<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	textY.<span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;accelerationY: &quot;</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span>accY<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	textZ.<span style="color: #004993;">text</span>=<span style="color: #990000;">&quot;accelerationZ: &quot;</span><span style="color: #000000; font-weight: bold;">+</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Math</span>.<span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span>accZ<span style="color: #000000; font-weight: bold;">*</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">10000</span><span style="color: #000000;">&#41;</span>.<span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #009900;">//画线，画圈</span>
	<span style="color: #004993;">graphics</span>.<span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #004993;">graphics</span>.<span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span>,0xFFFFFF<span style="color: #000000;">&#41;</span>;
	<span style="color: #004993;">graphics</span>.<span style="color: #004993;">moveTo</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">160</span>,<span style="color: #000000; font-weight:bold;">240</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #004993;">graphics</span>.<span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span>ball.<span style="color: #004993;">x</span>,ball.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #004993;">graphics</span>.<span style="color: #004993;">drawCircle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">160</span>,<span style="color: #000000; font-weight:bold;">240</span>,<span style="color: #004993;">d</span><span style="color: #000000;">&#41;</span>;
<span style="color: #000000;">&#125;</span>
<span style="color: #009900;">//新建一个加速感应器</span>
<span style="color: #6699cc; font-weight: bold;">var</span> acc<span style="color: #000000; font-weight: bold;">:</span>Accelerometer=<span style="color: #0033ff; font-weight: bold;">new</span> Accelerometer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #009900;">//添加侦听</span>
acc.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>AccelerometerEvent.UPDATE,update<span style="color: #000000;">&#41;</span>;
<span style="color: #0033ff; font-weight: bold;">this</span>.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Event</span>.<span style="color: #004993;">ENTER_FRAME</span>,Show<span style="color: #000000;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-cs5-iphone-accelerometer.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash player 10.1 如期发布</title>
		<link>http://www.jimmy.sh/flash/flash-player-10-1-beta.html</link>
		<comments>http://www.jimmy.sh/flash/flash-player-10-1-beta.html#comments</comments>
		<pubDate>Tue, 17 Nov 2009 15:29:13 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1425</guid>
		<description><![CDATA[Adobe终于放出来了，新的Flash Player 10.1 可以完全支持GPU加速，明天白天测试下性能，现在出来的是Win,MAC,Linux平台版本，后续的还会放出Palm，WebOS和其他更多智能手机系统版本，让我们拭目以待吧（学AS有前途，国内希望速开相关课程，可以请我当讲师哈，呵呵呵） Flash Player 10.1 http://labs.adobe.com/technologies/flashplayer10/ Adobe高级产品经历Justin的文章，Flash Player 10.1新功能： http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html Flash Player 10.1发行说明： http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf AIR 2 http://labs.adobe.com/technologies/air2/ AIR 2的新功能介绍： http://www.adobe.com/devnet/logged_in/rchristensen_air_2.html]]></description>
			<content:encoded><![CDATA[<p>Adobe终于放出来了，新的Flash Player 10.1 可以完全支持GPU加速，明天白天测试下性能，现在出来的是Win,MAC,Linux平台版本，后续的还会放出Palm，WebOS和其他更多智能手机系统版本，让我们拭目以待吧（学AS有前途，国内希望速开相关课程，可以请我当讲师哈，呵呵呵）</p>
<p>Flash Player 10.1<br />
<a style="text-decoration: none; color: #095c83;" href="http://labs.adobe.com/technologies/flashplayer10/" target="_blank">http://labs.adobe.com/technologies/flashplayer10/</a><br />
Adobe高级产品经历Justin的文章，Flash Player 10.1新功能：<br />
<a style="text-decoration: none; color: #095c83;" href="http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html" target="_blank">http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html</a><br />
Flash Player 10.1发行说明：<br />
<a style="text-decoration: none; color: #095c83;" href="http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf" target="_blank">http://labs.adobe.com/technologies/flashplayer10/releasenotes.pdf</a></p>
<p>AIR 2<br />
<a style="text-decoration: none; color: #095c83;" href="http://labs.adobe.com/technologies/air2/" target="_blank">http://labs.adobe.com/technologies/air2/</a><br />
AIR 2的新功能介绍：<br />
<a style="text-decoration: none; color: #095c83;" href="http://www.adobe.com/devnet/logged_in/rchristensen_air_2.html" target="_blank">http://www.adobe.com/devnet/logged_in/rchristensen_air_2.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-player-10-1-beta.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>今年UPA大会</title>
		<link>http://www.jimmy.sh/flash/upa-2009.html</link>
		<comments>http://www.jimmy.sh/flash/upa-2009.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 13:31:38 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1415</guid>
		<description><![CDATA[今年来了有300多人，展商差不多10来个，感觉没有深圳举办规模大。我们＋Desing团队带了2个项目和2个演讲，算是比较亮点了，来我们展台人也比较多（送小东西＋免费打印＝吸引人），Danis跟我都送出好多。 中午吃饭的时候跟BBC的范伟明聊了好多，原来他以前是个Design，感觉老牛的一个人物，好像跟我们老板很熟的样子，可惜没时间去听他的演讲。 主办方这次选的地点比较烂，昨晚叫我们就提前布置好展台，第二天就搬地方，我晕！还要气愤的是，会场的WIFI真是太烂了，交了钱都没有网络，害的我们一款最新的网络概念打印机都没有展示出来，哎！只能靠说的，都上市的机器，感觉像是介绍个未来产品一样。特别是晚上Danis走后的最后批人，讲的我喉咙都要冒烟了，还好最后Stella带我吃了顿好的，算是弥补了 没时间拍照片，就一张我们会展的海报，凑合的看看吧&#8230;]]></description>
			<content:encoded><![CDATA[<p>今年来了有300多人，展商差不多10来个，感觉没有深圳举办规模大。我们＋Desing团队带了2个项目和2个演讲，算是比较亮点了，来我们展台人也比较多（送小东西＋免费打印＝吸引人），Danis跟我都送出好多。</p>
<p>中午吃饭的时候跟BBC的范伟明聊了好多，原来他以前是个Design，感觉老牛的一个人物，好像跟我们老板很熟的样子，可惜没时间去听他的演讲。</p>
<p>主办方这次选的地点比较烂，昨晚叫我们就提前布置好展台，第二天就搬地方，我晕！还要气愤的是，会场的WIFI真是太烂了，交了钱都没有网络，害的我们一款最新的网络概念打印机都没有展示出来，哎！只能靠说的，都上市的机器，感觉像是介绍个未来产品一样。特别是晚上Danis走后的最后批人，讲的我喉咙都要冒烟了，还好最后Stella带我吃了顿好的，算是弥补了</p>
<p>没时间拍照片，就一张我们会展的海报，凑合的看看吧&#8230;</p>
<p><a href="http://www.jimmy.sh/wp-content/uploads/2009/11/upa.png"><img class="alignnone size-full wp-image-1414" title="upa" src="http://www.jimmy.sh/wp-content/uploads/2009/11/upa.png" alt="upa" width="452" height="611" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/upa-2009.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
