<?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 &#187; Flash</title>
	<atom:link href="http://www.jimmy.sh/tag/flash/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jimmy.sh</link>
	<description>Live in code! Inspired genuine trusted</description>
	<lastBuildDate>Wed, 29 Jun 2011 15:58:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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><span style="color: #000066; font-weight: bold;">.</span>TouchEvent<span style="color: #000066; font-weight: bold;">;</span> 多点触摸事件
Property：
<span style="color: #004993;">altKey</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//设置Alt键激活与否</span>
commandKey <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//设置Command键激活与否</span>
controlKey <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//设置Control键激活与否</span>
<span style="color: #004993;">ctrlKey</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//设置Ctrl键激活与否</span>
isPrimaryTouchPoint <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//接触的第一个点是否被看成鼠标事件</span>
isRelatedObjectInaccessible <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//安全设置</span>
<span style="color: #004993;">localX</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span>  <span style="color: #009900; font-style: italic;">//相对x坐标</span>
<span style="color: #004993;">localY</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span>  <span style="color: #009900; font-style: italic;">//相对y坐标</span>
pressure <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900; font-style: italic;">//于设备接触的压力</span>
<span style="color: #004993;">relatedObject</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">InteractiveObject</span><span style="color: #009900; font-style: italic;">// 显示相关的Object</span>
<span style="color: #004993;">shiftKey</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span><span style="color: #009900; font-style: italic;">// 设置ShiftKey键激活与否</span>
sizeX <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span><span style="color: #009900; font-style: italic;">// 触摸时的宽度</span>
sizeY <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900; font-style: italic;">//触摸时高度</span>
<span style="color: #004993;">stageX</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900; font-style: italic;">//全局X坐标</span>
<span style="color: #004993;">stageY</span> <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Number</span> <span style="color: #009900; font-style: italic;">//全局Y坐标</span>
touchPointID <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">int</span> <span style="color: #009900; font-style: italic;">//接触点的ID识别码</span>
&nbsp;
Methods：
TouchEvent
&nbsp;
AS新增加类包 <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.</span>Multitouch<span style="color: #000066; font-weight: bold;">;</span> 多点触摸管理类
inputMode <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">String</span>  <span style="color: #009900; font-style: italic;">//触摸事件的处理模式（多点或是手势）</span>
maxTouchPoints <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">int</span>  <span style="color: #009900; font-style: italic;">//当前环境所支持同时进行的接触点的最大数量</span>
supportedGestures <span style="color: #000066; font-weight: bold;">:</span> Vector<span style="color: #000066; font-weight: bold;">.</span> <span style="color: #009900; font-style: italic;">//当前环境所支持多接触的类型</span>
supportsGestureEvents <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//当前环境是否支持手势</span>
supportsTouchEvents <span style="color: #000066; font-weight: bold;">:</span> <span style="color: #004993;">Boolean</span> <span style="color: #009900; font-style: italic;">//当前环境是否支持基本的触摸</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: #000066; font-weight: bold;">.</span><span style="color: #004993;">DisplayObject</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span>TouchEvent<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.</span>Multitouch<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.ui</span><span style="color: #000066; font-weight: bold;">.</span>MultitouchInputMode<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> main <span style="color: #0033ff; font-weight: bold;">extends</span> <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: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s2<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s3<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s4<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s5<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> s6<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #6699cc; font-weight: bold;">var</span> touchMap<span style="color: #000066; 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: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #6699cc; font-weight: bold;">var</span> touchMc<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</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<span style="color: #000066; font-weight: bold;">,</span>s2<span style="color: #000066; font-weight: bold;">,</span>s3<span style="color: #000066; font-weight: bold;">,</span>s4<span style="color: #000066; font-weight: bold;">,</span>s5<span style="color: #000066; font-weight: bold;">,</span>s6<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #009900; font-style: italic;">//多点触摸类型</span>
			Multitouch<span style="color: #000066; font-weight: bold;">.</span>inputMode=MultitouchInputMode<span style="color: #000066; font-weight: bold;">.</span>TOUCH_POINT<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #009900; font-style: italic;">//添加3个多点触摸事件</span>
			<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent<span style="color: #000066; font-weight: bold;">.</span>TOUCH_BEGIN<span style="color: #000066; font-weight: bold;">,</span>touchBeginHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent<span style="color: #000066; font-weight: bold;">.</span>TOUCH_END<span style="color: #000066; font-weight: bold;">,</span>touchEndHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>TouchEvent<span style="color: #000066; font-weight: bold;">.</span>TOUCH_MOVE<span style="color: #000066; font-weight: bold;">,</span>touchMoveHandler<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900; font-style: italic;">//触摸开始事件</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: #000066; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; 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: #000066; font-weight: bold;">.</span><span style="color: #004993;">target</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			touchMc<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">sort</span><span style="color: #000000;">&#40;</span>depthFunction<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> touchPoint<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span>=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">;</span>
			touchMap<span style="color: #000000;">&#91;</span>event<span style="color: #000066; font-weight: bold;">.</span>touchPointID<span style="color: #000000;">&#93;</span> =touchPoint<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900; font-style: italic;">//根据深度排序，为了让判断的时候先判断前面的物体</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: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span><span style="color: #000000;">&#41;</span><span style="color: #000066; 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: #000066; font-weight: bold;">&amp;</span>gt<span style="color: #000066; font-weight: bold;">;</span>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: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</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: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900; font-style: italic;">//触摸事件结束事件</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: #000066; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; 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<span style="color: #000066; font-weight: bold;">.</span>touchPointID<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #009900; font-style: italic;">//触摸点移动事件</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: #000066; font-weight: bold;">:</span>TouchEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; 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: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span> =event<span style="color: #000066; font-weight: bold;">.</span>touchPointID<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #009900; font-style: italic;">//判断触摸到那个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: #000066; font-weight: bold;">:</span><span style="color: #004993;">int</span>=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>i<span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span><span style="color: #000000; font-weight:bold;">6</span><span style="color: #000066; font-weight: bold;">;</span>i<span style="color: #000066; 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: #000066; 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: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>_mc<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">hitTestPoint</span><span style="color: #000000;">&#40;</span> event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageX</span><span style="color: #000066; font-weight: bold;">,</span>event<span style="color: #000066; font-weight: bold;">.</span><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: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span>=event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageX</span><span style="color: #000066; font-weight: bold;">;</span>
							_mc<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span>=event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">stageY</span><span style="color: #000066; font-weight: bold;">;</span>
							<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
						<span style="color: #000000;">&#125;</span><span style="color: #000066; font-weight: bold;">;</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>3</slash:comments>
		</item>
		<item>
		<title>Flash Player 10 中的RTMFP(实现P2P)</title>
		<link>http://www.jimmy.sh/flash/flash-player-10-%e4%b8%ad%e7%9a%84rtmfp%e5%ae%9e%e7%8e%b0p2p.html</link>
		<comments>http://www.jimmy.sh/flash/flash-player-10-%e4%b8%ad%e7%9a%84rtmfp%e5%ae%9e%e7%8e%b0p2p.html#comments</comments>
		<pubDate>Wed, 19 Nov 2008 15:50:17 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[P2P]]></category>
		<category><![CDATA[RTMFP]]></category>
		<category><![CDATA[多人游戏]]></category>
		<category><![CDATA[直播]]></category>

		<guid isPermaLink="false">http://jimmy.sh/?p=564</guid>
		<description><![CDATA[  原文地址:http://blog.csdn.net/NULLCN/archive/2008/09/05/2885122.aspx     RTMFP是Adobe公司开发的一套新的通信协议，该协议可以让使用Adobe Flash Player的终端用户之间进行直接通信。用Adobe AIR框架开发的程序也可以用此协议来发布直播、实时信息。      通过使用RTMFP, 那些以来直播、实时通信的应用，比如社区、音视频聊天和多人游戏就有能力来发布高质量的通信解决方案。RTMFP让终端用户可以直接连接并通信，可以使用麦克风和摄象头直接聊天。RTMFP将不支持文件和文档共享。此方案提升了目前Flash Player在网络交互方面的体验。      RTMFP将减少直播、实时聊天方案的带宽消耗，例如音视频聊天和多人游戏。因为TRMFP的数据在终端用户之间流动，而不是和服务器，所以此方案很适合于大范围的部署。RTMFP因为采用了UDP也提升了传送的速度。UDP是Internet上一种更有效传送音频视频的方法，虽然会有一些丢包，错包。RTMFP有两个特性可以帮助解决一些连接错误。   快速连接恢复：连接在以外情况下将快速恢复。例如，一个无线连接掉线了，一旦重连，他将迅速拥有所有的传送能力。     IP动态化：一个活动的网络会话将以PEER来标识，即使他变了一个IP，也可以保持原来的会话。例如，一个笔记本在一个无线网络获得了一个新IP地址，他将立刻继续刚才的会话。      RTMP和RTMFP之间的不同。   最基本的确实是他们在网络上采用的协议。RTMFP是基于UDP的，RTMP是基于TCP的。UDP在传送直播数据方面比TCP还是有较多优势的，比如减少延时，对丢包的容忍，虽然在可靠性上有所损失。不象RTMP, RTMFP支持Flash Player直接发送数据给另一个，而不经过Server。服务端连接将被用来初始化并交互一些客户端之间的信息，也可用来进行服务端调用或者作为进入其他系统的网关。FMS也将用来为用户提供地址认证服务和NAT地址转换服务，避免用户陷入混乱。 历史： 该技术是由ADOBE在2006收购的公司Amicima最先开发的。 http://en.wikipedia.org/wiki/Real_Time_Media_Flow_Protocol]]></description>
			<content:encoded><![CDATA[<p> </p>
<p class="MsoNormal"><span lang="EN-US">原文地址:<a href="http://blog.csdn.net/NULLCN/archive/2008/09/05/2885122.aspx">http://blog.csdn.net/NULLCN/archive/2008/09/05/2885122.aspx</a><br />
    RTMFP</span><span>是</span><span lang="EN-US">Adobe</span><span>公司开发的一套新的通信协议，该协议可以让使用</span><span lang="EN-US">Adobe Flash Player</span><span>的终端用户之间进行直接通信。用</span><span lang="EN-US">Adobe AIR</span><span>框架开发的程序也可以用此协议来发布直播、实时信息。</span><span lang="EN-US"> </span>
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span>  通过使用</span><span lang="EN-US">RTMFP, </span><span>那些以来直播、实时通信的应用，比如社区、音视频聊天和多人游戏就有能力来发布高质量的通信解决方案。</span><span lang="EN-US">RTMFP</span><span>让终端用户可以直接连接并通信，可以使用麦克风和摄象头直接聊天。</span><span lang="EN-US">RTMFP</span><span>将不支持文件和文档共享。此方案提升了目前</span><span lang="EN-US">Flash Player</span><span>在网络交互方面的体验。</span><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"><span id="more-564"></span><br />
</span>
</p>
<p class="MsoNormal"><span lang="EN-US">    RTMFP</span><span>将减少直播、实时聊天方案的带宽消耗，例如音视频聊天和多人游戏。因为</span><span lang="EN-US">TRMFP</span><span>的数据在终端用户之间流动，而不是和服务器，所以此方案很适合于大范围的部署。</span><span lang="EN-US">RTMFP</span><span>因为采用了</span><span lang="EN-US">UDP</span><span>也提升了传送的速度。</span><span lang="EN-US">UDP</span><span>是</span><span lang="EN-US">Internet</span><span>上一种更有效传送音频视频的方法，虽然会有一些丢包，错包。</span><span lang="EN-US">RTMFP</span><span>有两个特性可以帮助解决一些连接错误。</span></p>
<p class="MsoNormal"><span>  快速连接恢复：连接在以外情况下将快速恢复。例如，一个无线连接掉线了，一旦重连，他将迅速拥有所有的传送能力。<br />
</span>
</p>
<p class="MsoNormal"><span lang="EN-US">    IP</span><span>动态化：一个活动的网络会话将以</span><span lang="EN-US">PEER</span><span>来标识，即使他变了一个</span><span lang="EN-US">IP</span><span>，也可以保持原来的会话。例如，一个笔记本在一个无线网络获得了一个新</span><span lang="EN-US">IP</span><span>地址，他将立刻继续刚才的会话。</span><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">    RTMP</span><span>和</span><span lang="EN-US">RTMFP</span><span>之间的不同。</span></p>
<p class="MsoNormal"><span>  最基本的确实是他们在网络上采用的协议。</span><span lang="EN-US">RTMFP</span><span>是基于</span><span lang="EN-US">UDP</span><span>的，</span><span lang="EN-US">RTMP</span><span>是基于</span><span lang="EN-US">TCP</span><span>的。</span><span lang="EN-US">UDP</span><span>在传送直播数据方面比</span><span lang="EN-US">TCP</span><span>还是有较多优势的，比如减少延时，对丢包的容忍，虽然在可靠性上有所损失。不象</span><span lang="EN-US">RTMP, RTMFP</span><span>支持</span><span lang="EN-US">Flash Player</span><span>直接发送数据给另一个，而不经过</span><span lang="EN-US">Server</span><span>。服务端连接将被用来初始化并交互一些客户端之间的信息，也可用来进行服务端调用或者作为进入其他系统的网关。</span><span lang="EN-US">FMS</span><span>也将用来为用户提供地址认证服务和</span><span lang="EN-US">NAT</span><span>地址转换服务，避免用户陷入混乱。<br />
<img src="http://www.klstudio.com/upload/0848511.jpg" alt="/upload/0848511.jpg" /><br />
<img src="http://www.klstudio.com/upload/0848510.jpg" alt="/upload/0848510.jpg" /></span></p>
<p><span>历史：</span>
</p>
<p class="MsoNormal"><span>该技术是由</span><span lang="EN-US">ADOBE</span><span>在</span><span lang="EN-US">2006</span><span>收购的公司</span><span lang="EN-US">Amicima</span><span>最先开发的。</span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="http://en.wikipedia.org/wiki/Real_Time_Media_Flow_Protocol">http://en.wikipedia.org/wiki/Real_Time_Media_Flow_Protocol</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-player-10-%e4%b8%ad%e7%9a%84rtmfp%e5%ae%9e%e7%8e%b0p2p.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flash CS4 Professional 专业版 下载 (带破解包，破解补丁)</title>
		<link>http://www.jimmy.sh/flash/adobe-flash-cs4-professional-%e4%b8%93%e4%b8%9a%e7%89%88-%e4%b8%8b%e8%bd%bd-%e5%b8%a6%e7%a0%b4%e8%a7%a3%e5%8c%85.html</link>
		<comments>http://www.jimmy.sh/flash/adobe-flash-cs4-professional-%e4%b8%93%e4%b8%9a%e7%89%88-%e4%b8%8b%e8%bd%bd-%e5%b8%a6%e7%a0%b4%e8%a7%a3%e5%8c%85.html#comments</comments>
		<pubDate>Wed, 24 Sep 2008 16:25:34 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[破解]]></category>
		<category><![CDATA[种子]]></category>

		<guid isPermaLink="false">http://jimmy.sh/?p=383</guid>
		<description><![CDATA[没想到这么快就出现了，连破解都有了。外国人还真是神速！ Adobe Flash CS4 Professional 专业版，种子,BT. BT种子: adobe-flash-cs4-v10-0-professional-shockisoseedpeer.rar  ]]></description>
			<content:encoded><![CDATA[<p>没想到这么快就出现了，连破解都有了。外国人还真是神速！</p>
<p>Adobe Flash CS4 Professional 专业版，种子,BT.</p>
<p>BT种子:</p>
<p><a href="http://jimmy.sh/wp-content/uploads/2008/09/adobe-flash-cs4-v10-0-professional-shockisoseedpeer.rar">adobe-flash-cs4-v10-0-professional-shockisoseedpeer.rar</a></p>
<p> </p>
<p><img src="http://img.verycd.com/posts/0809/post-435367-1222248699.jpg" border="0" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/adobe-flash-cs4-professional-%e4%b8%93%e4%b8%9a%e7%89%88-%e4%b8%8b%e8%bd%bd-%e5%b8%a6%e7%a0%b4%e8%a7%a3%e5%8c%85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash cs4 新特性</title>
		<link>http://www.jimmy.sh/flash/flash-cs4-%e6%96%b0%e7%89%b9%e6%80%a7.html</link>
		<comments>http://www.jimmy.sh/flash/flash-cs4-%e6%96%b0%e7%89%b9%e6%80%a7.html#comments</comments>
		<pubDate>Wed, 24 Sep 2008 08:55:06 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[3D]]></category>

		<guid isPermaLink="false">http://jimmy.sh/?p=366</guid>
		<description><![CDATA[官方介绍地址: http://www.adobe.com/cn/products/flash/features/ 官方视频介绍地址： http://tv.adobe.com/#vi+f1555v1709 历史的时刻到了。 重要的新功能如下   基于对象的动画 使用基于对象的动画对个别动画属性实现全面控制, 它将补间直接应用于对象而不是关键帧。使用贝赛尔手柄轻松更改运动路径。 3D 转换 借助令人兴奋的全新 3D 平移和旋转工具, 通过 3D 空间为 2D 对象创作动画, 您可以沿 x、y、z 轴创作动画。将本地或全局转换应用于任何对象。 使用 Deco 工具和喷涂刷实现程序建模 将任何元件转变为即时设计工具。以各种方式应用元件: 使用 Deco 工具快速创建类似于万花筒的效果并应用填充, 或使用喷涂刷在定义区域随机喷涂元件。 元数据 (XMP) 支持 使用全新的 XMP 面板向 SWF 文件添加元数据。快速指定标记以增强协作和移动体验。 针对 Adobe AIR™ 进行创作 借助发布到 Adobe AIR 运行时的全新集成功能, 实现交互式桌面体验。面向跨更多设备 &#8211; Web、移动和桌面的更多用户。 全新 Adobe Creative Suite® 界面 [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;">官方介绍地址:</span></p>
<p><a href="http://www.adobe.com/cn/products/flash/features/" target="_blank">http://www.adobe.com/cn/products/flash/features/</a></p>
<p>官方视频介绍地址：</p>
<p><a href="http://tv.adobe.com/#vi+f1555v1709">http://tv.adobe.com/#vi+f1555v1709</a></p>
<p>历史的时刻到了。</p>
<p>重要的新功能如下</p>
<div class="columns-2-Abb-A">
<p><a title="基于对象的动画" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/object-based-animation/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/object-based-animation/feature-spotlight.jpg" alt="基于对象的动画" width="488" height="260" /></a></p>
<p> </p></div>
<div class="columns-2-Abb-bb intro">
<h4 class="tag-title tag-new">基于对象的动画</h4>
<p><span id="more-366"></span></p>
<p>使用基于对象的动画对个别动画属性实现全面控制, 它将补间直接应用于对象而不是关键帧。使用贝赛尔手柄轻松更改运动路径。</p></div>
<p><br class="clear-both" /></p>
<div class="columns-2-AB-A">
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="3D 转换" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/3d-transformation/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/3d-transformation/inline.jpg" alt="3D 转换" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">3D 转换</h4>
<p>借助令人兴奋的全新 3D 平移和旋转工具, 通过 3D 空间为 2D 对象创作动画, 您可以沿 x、y、z 轴创作动画。将本地或全局转换应用于任何对象。</p></div>
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="使用 Deco 工具和喷涂刷实现程序建模" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/procedural-modeling-with-the-deco-tool/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/procedural-modeling-with-the-deco-tool/inline.jpg" alt="使用 Deco 工具和喷涂刷实现程序建模" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">使用 Deco 工具和喷涂刷实现程序建模</h4>
<p>将任何元件转变为即时设计工具。以各种方式应用元件: 使用 Deco 工具快速创建类似于万花筒的效果并应用填充, 或使用喷涂刷在定义区域随机喷涂元件。</p></div>
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="元数据 (XMP) 支持" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/metadata-support/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/metadata-support/inline.jpg" alt="元数据 (XMP) 支持" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">元数据 (XMP) 支持</h4>
<p>使用全新的 XMP 面板向 SWF 文件添加元数据。快速指定标记以增强协作和移动体验。</p></div>
<h4 class="tag-title tag-new">针对 Adobe AIR™ 进行创作</h4>
<p>借助发布到 Adobe AIR 运行时的全新集成功能, 实现交互式桌面体验。面向跨更多设备 &#8211; Web、移动和桌面的更多用户。</p>
<h4 class="tag-title tag-new">全新 Adobe Creative Suite® 界面</h4>
<p>借助直观的面板停靠和弹出式行为提高工作效率, 它们简化了您在所有 Adobe Creative Suite 版本中与工具的交互。</p></div>
<div class="columns-2-AB-B">
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="反向运动与骨骼工具" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/inverse-kinematics-with-the-bones-tool/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/inverse-kinematics-with-the-bones-tool/inline.jpg" alt="反向运动与骨骼工具" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">反向运动与骨骼工具</h4>
<p>使用一系列链接对象创建类似于链的动画效果, 或使用全新的骨骼工具扭曲单个形状。</p></div>
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="动画编辑器" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/motion-editor/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/motion-editor/inline.jpg" alt="动画编辑器" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">动画编辑器</h4>
<p>使用全新的动画编辑器体验对关键帧参数的细致控制, 这些参数包括旋转、大小、缩放、位置和滤镜等。使用图形显示以全面控制轻松实现调整。</p></div>
<div class="pullout-right right-wrap">
<p class="pullout-item"><a title="动画预设" rel="modal" href="http://www.adobe.com/cn/products/flash/features/include/motion-presets/modal.html?width=784&amp;height=462"><img src="http://www.adobe.com/cn/products/flash/features/include/motion-presets/inline.jpg" alt="动画预设" width="200" height="150" /></a></p>
<h4 class="tag-title tag-new">动画预设</h4>
<p>借助可应用于任何对象的预建动画启动项目。从大量预设中进行选择, 或创建并保存自己的动画。与他人共享预设以节省动画创作时间。</p></div>
<h4 class="tag-title tag-new">H.264 支持</h4>
<p>借助 Adobe Media Encoder 编码为 Adobe Flash Player 运行时可以识别的任何格式, 其它 Adobe 视频产品也提供这个工具, 现在新增了 H.264 支持。</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-cs4-%e6%96%b0%e7%89%b9%e6%80%a7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash 3D 单面旋转</title>
		<link>http://www.jimmy.sh/flash/flash-3d-%e5%8d%95%e9%9d%a2%e6%97%8b%e8%bd%ac.html</link>
		<comments>http://www.jimmy.sh/flash/flash-3d-%e5%8d%95%e9%9d%a2%e6%97%8b%e8%bd%ac.html#comments</comments>
		<pubDate>Wed, 25 Jun 2008 06:15:05 +0000</pubDate>
		<dc:creator>Jimmy</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[3D]]></category>

		<guid isPermaLink="false">http://jimmy.sh/?p=131</guid>
		<description><![CDATA[不喜欢研究人家3D类，自己写写研究研究，as3效率还真是高,flash demo请阅读全文 效果demo]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimmy.sh/?p=131#more-131"><img class="alignnone size-medium wp-image-200" title="dmxz" src="http://jimmy.sh/wp-content/uploads/2008/07/dmxz.jpg" alt="" width="282" height="275" /></a></p>
<p>不喜欢研究人家3D类，自己写写研究研究，as3效率还真是高,flash demo请阅读全文</p>
<p><span id="more-131"></span></p>
<p>效果demo<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://jimmy.sh/wp-content/uploads/2008/06/e5b9b3e99da2e6978be8bdac.swf" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://jimmy.sh/wp-content/uploads/2008/06/e5b9b3e99da2e6978be8bdac.swf"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jimmy.sh/flash/flash-3d-%e5%8d%95%e9%9d%a2%e6%97%8b%e8%bd%ac.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

