<?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; iPhone</title>
	<atom:link href="http://www.jimmy.sh/tag/iphone/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>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 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 CS5开发iPhone应用［资源共享］</title>
		<link>http://www.jimmy.sh/iphone/flash-cs5-iphone-share.html</link>
		<comments>http://www.jimmy.sh/iphone/flash-cs5-iphone-share.html#comments</comments>
		<pubDate>Wed, 23 Dec 2009 03:56:35 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Flash CS5]]></category>

		<guid isPermaLink="false">http://www.jimmy.sh/?p=1450</guid>
		<description><![CDATA[Flash cs5 beta版本已经到手好久了，可惜最近一直忙自己房子装修，没多少时间去研究，可惜阿！其实手上有很多资源，都是内部的，所以现在还不能给大家望见谅，希望大家不要再发邮件问我要了，现阶段只能共享给大家一些我自己整理的cs5新增类，和一些列子。 现阶段共享： Flash CS5 新增类下载 实例 原文件 ipa Circles Circles Circles.ipa CirclesGLES CirclesGLES CirclesGLES.ipa DiceSample DiceSample DiceSample.ipa FingerPaint FingerPaint FingerPaint.ipa FlashWrap FlashWrap FlashWrap.ipa ShapesSample ShapesSample ShapesSample.ipa TruchetSample TruchetSample TruchetSample.ipa 稍后共享： Flash cs5 最新帮助文档 Flash cs5 beta for mac Flash cs5 beta for windows]]></description>
			<content:encoded><![CDATA[<div id="attachment_1474" class="wp-caption alignnone" style="width: 605px"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/flash-cs5.png"><img class="size-full wp-image-1474" title="flash cs5" src="http://www.jimmy.sh/wp-content/uploads/2009/12/flash-cs5.png" alt="flash cs5" width="595" height="289" /></a><p class="wp-caption-text">flash cs5</p></div>
<p>Flash cs5 beta版本已经到手好久了，可惜最近一直忙自己房子装修，没多少时间去研究，可惜阿！其实手上有很多资源，都是内部的，所以现在还不能给大家望见谅，希望大家不要再发邮件问我要了，现阶段只能共享给大家一些我自己整理的cs5新增类，和一些列子。</p>
<p>现阶段共享：</p>
<p><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/cs5-new-Class.pdf">Flash CS5 新增类下载</a></p>
<p><span style="font-family: Helvetica, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: normal; font-size: 12px;"> </span></p>
<table style="background-color: #ffffff; border-collapse: collapse;" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #f5fbff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">实例</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #f5fbff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">原文件</span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #f5fbff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">ipa</span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">Circles</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/Circles.zip">Circles</a></span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/Circles.ipa">Circles.ipa</a></span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">CirclesGLES</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/CirclesGLES.zip">CirclesGLES</a></span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/CirclesGLES.ipa">CirclesGLES.ipa</a></span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">DiceSample</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/DiceSample.zip">DiceSample</a></span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/DiceSample.ipa">DiceSample.ipa</a></span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">FingerPaint</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/FingerPaint.zip">FingerPaint</a></span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/FingerPaint.ipa">FingerPaint.ipa</a></span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica;"><span style="letter-spacing: 0.0px;">FlashWrap</span></p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/FlashWrap.zip">FlashWrap</a></span></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 12.0px Helvetica; color: #001fa9;"><span style="text-decoration: underline;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/FlashWrap.ipa">FlashWrap.ipa</a></span></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">ShapesSample</p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/ShapesSample.zip">ShapesSample</a></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/ShapesSample.ipa">ShapesSample.ipa</a></p>
</td>
</tr>
<tr>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">TruchetSample</p>
</td>
<td style="width: 124.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/TruchetSample.zip">TruchetSample</a></p>
</td>
<td style="width: 149.0px; height: 14.0px; background-color: #ffffff; padding: 5.0px 5.0px 5.0px 5.0px; border: 1.0px 1.0px 1.0px 1.0px solid #bbbbbb #bbbbbb #bbbbbb #bbbbbb;" valign="top">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;"><a href="http://www.jimmy.sh/wp-content/uploads/2009/12/TruchetSample.ipa">TruchetSample.ipa</a></p>
</td>
</tr>
</tbody>
</table>
<p><span style="color: #993300;">稍后共享：</span></p>
<p>Flash cs5 最新帮助文档</p>
<p>Flash cs5 beta for mac</p>
<p>Flash cs5 beta for windows</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/iphone/flash-cs5-iphone-share.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>iPhone上基于FMS的播放器</title>
		<link>http://www.jimmy.sh/flash/iphone%e4%b8%8a%e5%9f%ba%e4%ba%8efms%e7%9a%84%e8%a7%86%e9%a2%91%e6%92%ad%e6%94%be.html</link>
		<comments>http://www.jimmy.sh/flash/iphone%e4%b8%8a%e5%9f%ba%e4%ba%8efms%e7%9a%84%e8%a7%86%e9%a2%91%e6%92%ad%e6%94%be.html#comments</comments>
		<pubDate>Thu, 23 Jul 2009 16:34:18 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Tuner HiFi Radio]]></category>

		<guid isPermaLink="false">http://jimmy.sh/?p=803</guid>
		<description><![CDATA[Tuner HiFi Radio 一款基于RTMP协议的播放器.服务器端是Adobe Flash Media Servers.iPhone 终于有跟flash搭上关系的程序拉。 Some of the most popular apps for the iPhone and iPod touch are those that allow users to stream music from the Internet. A new application is now available for the iPhone that supports the true RTPM protocol for streaming music from Adobe Flash Media Servers. The [...]]]></description>
			<content:encoded><![CDATA[<p>Tuner HiFi Radio 一款基于RTMP协议的播放器.服务器端是Adobe Flash Media Servers.iPhone 终于有跟flash搭上关系的程序拉。</p>
<p>Some of the most popular apps for the iPhone and iPod touch are those that allow users to stream music from the Internet. A new application is now available for the iPhone that supports the true RTPM protocol for streaming music from Adobe Flash Media Servers.</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; text-align: left; font-size: 12px; line-height: 18px; margin: 0px; border: 0px initial initial;">The application is called Tuner2 Hi-Fi Radio and it is a custom version of the Modulation Index radio app. The app supports MPEG-4 HE AAC v2 audio and offers more stability and higher fidelity sound than typical MP3 or HE AAC v1 over HTTP music tracks.</p>
<p style="padding-top: 0px; padding-right: 0px; padding-bottom: 15px; padding-left: 0px; text-align: left; font-size: 12px; line-height: 18px; margin: 0px; border: 0px initial initial;">The company claims that the format used with the app gives up to 4x better sound per bit than MP3 and has less overhead than HTTP tracks. The application can be downloaded on the App Store now for $8.99.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/iphone%e4%b8%8a%e5%9f%ba%e4%ba%8efms%e7%9a%84%e8%a7%86%e9%a2%91%e6%92%ad%e6%94%be.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
