<?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>IT妖怪</title>
	<atom:link href="http://blog.ityao.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ityao.com</link>
	<description>热爱生活，热爱程序</description>
	<lastBuildDate>Wed, 03 Aug 2011 02:56:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>琢磨一下新浪微博开放的LBS接口可以实现些什么</title>
		<link>http://blog.ityao.com/archives/807</link>
		<comments>http://blog.ityao.com/archives/807#comments</comments>
		<pubDate>Wed, 03 Aug 2011 02:56:30 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[IT八卦]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=807</guid>
		<description><![CDATA[恩，一定很好玩，最近喜欢骑行，或者就做个骑行的例子试试！ &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 来自：http://www.geekpark.net/entity/view/125376 新浪微博开放平台将开放LBS接口 8月2日消息，新浪微博开放平台近期将开放LBS(基于位置的服务)接口。此前，新浪微博与上海捷布士共同推出LBS产品新浪“微领地”。 国外市场LBS商业价值的挖掘已日趋成熟，相关应用较为全面。在国内，街旁、大众点评网等网站相继进军LBS。同时，各种应用层出不穷：BitFlx、karizma、Fire eagle、Vidcinity、Droplat等，国内同类应用多达200个。登陆新浪微博，可以看到诸如微格、Weico.iPhone版、图钉等LBS应用。 基于新浪微博开放平台LBS的系列接口，开发者可研发出更有价值的应用产品。 例如，通过这些接口，用户可以获得其所在地点的周边微博;通过搜索范围的控制，还能把搜索范围限定在当前的地址如咖啡厅内，搜索指定地点周边的人，搜索当前地点周边的人都发了哪些带签到信息的微博。新浪微博推出的LBS信息里，具备一定价值的POI信息，开发者可以得到微博商家信息。 “微博为商户提供了庞大的优质用户资源，为开发者开放这些资源，可以鼓励鼓励开发者开发出更多、更好的应用。同时我们提供地理位置共享解决方案，并实现与微博消息传播的深度结合。”新浪微博副总经理芦义表示，“当然，我们一贯注重用户隐私信息，用户可以自己决定是否公开自己的地理位置，一旦用户设置为不公开，则在微博的LBS接口里将不返回该用户的有关数据。”]]></description>
			<content:encoded><![CDATA[<p>恩，一定很好玩，最近喜欢骑行，或者就做个骑行的例子试试！</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
来自：http://www.geekpark.net/entity/view/125376</p>
<p>新浪微博开放平台将开放LBS接口</p>
<p>8月2日消息，新浪微博开放平台近期将开放LBS(基于位置的服务)接口。此前，新浪微博与上海捷布士共同推出LBS产品新浪“微领地”。</p>
<p>国外市场LBS商业价值的挖掘已日趋成熟，相关应用较为全面。在国内，街旁、大众点评网等网站相继进军LBS。同时，各种应用层出不穷：BitFlx、karizma、Fire eagle、Vidcinity、Droplat等，国内同类应用多达200个。登陆新浪微博，可以看到诸如微格、Weico.iPhone版、图钉等LBS应用。</p>
<p>基于新浪微博开放平台LBS的系列接口，开发者可研发出更有价值的应用产品。</p>
<p>例如，通过这些接口，用户可以获得其所在地点的周边微博;通过搜索范围的控制，还能把搜索范围限定在当前的地址如咖啡厅内，搜索指定地点周边的人，搜索当前地点周边的人都发了哪些带签到信息的微博。新浪微博推出的LBS信息里，具备一定价值的POI信息，开发者可以得到微博商家信息。</p>
<p>“微博为商户提供了庞大的优质用户资源，为开发者开放这些资源，可以鼓励鼓励开发者开发出更多、更好的应用。同时我们提供地理位置共享解决方案，并实现与微博消息传播的深度结合。”新浪微博副总经理芦义表示，“当然，我们一贯注重用户隐私信息，用户可以自己决定是否公开自己的地理位置，一旦用户设置为不公开，则在微博的LBS接口里将不返回该用户的有关数据。”</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/807/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>创造属于你的独特字体</title>
		<link>http://blog.ityao.com/archives/801</link>
		<comments>http://blog.ityao.com/archives/801#comments</comments>
		<pubDate>Fri, 11 Mar 2011 01:37:43 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=801</guid>
		<description><![CDATA[http://www.fontself.com/ 这个网站让你有机会去创建属于自己的字体，赶快动手吧 步骤是： 1.注册登陆 2.打印一个网站提供的田字格 3.在田字格上书写文字 4.扫描成300dpi的照片上传回网站 然后进行微调！不过现在只支持拉丁类的文字！ 原理应该是每个字帮你存成一个sprite,然后根据你的文字拼在一起，需要在它的网站上使用，可惜不能直接导出成font文件！]]></description>
			<content:encoded><![CDATA[<p>http://www.fontself.com/</p>
<p>这个网站让你有机会去创建属于自己的字体，赶快动手吧</p>
<p>步骤是：<br />
1.注册登陆<br />
2.打印一个网站提供的田字格<br />
3.在田字格上书写文字<br />
4.扫描成300dpi的照片上传回网站</p>
<p>然后进行微调！不过现在只支持拉丁类的文字！</p>
<p>原理应该是每个字帮你存成一个sprite,然后根据你的文字拼在一起，需要在它的网站上使用，可惜不能直接导出成font文件！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/801/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mxml写as的小例子</title>
		<link>http://blog.ityao.com/archives/796</link>
		<comments>http://blog.ityao.com/archives/796#comments</comments>
		<pubDate>Wed, 02 Mar 2011 14:56:17 +0000</pubDate>
		<dc:creator>0xFF336699</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[杂七杂八]]></category>
		<category><![CDATA[汪汪 我是汪汪]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=796</guid>
		<description><![CDATA[需要用flex sdk4+ 工作中需要侦听类似domain.model.dataVO.value的时候,如果初始化是分段并且中间如model会被更改的话,这样要写不少代码来侦 听.用[Bindable]来写g setter的话侦听起来麻烦,生成gsetter的话,事件名称要么单独写静态属性,要么就是字符串,也是麻烦.属性 名称重构会导致字符串事件失效,也是一个麻烦.用flex的BindingUtil也是基于字符串的,重构名称还是麻烦. 所以flex sdk自动生成这些代码能够给这些需求带来方便.麻烦的是创建一个mxml文件需要手写命名空间,有好处也有孬处,请大家集 思广益一起找出更好的方案. 胡乱写一个例子,请见谅. 下载地址 http://aaaqetools.googlecode.com/files/MXMLPj.rar]]></description>
			<content:encoded><![CDATA[<p>需要用flex sdk4+</p>
<p>工作中需要侦听类似domain.model.dataVO.value的时候,如果初始化是分段并且中间如model会被更改的话,这样要写不少代码来侦</p>
<p>听.用[Bindable]来写g setter的话侦听起来麻烦,生成gsetter的话,事件名称要么单独写静态属性,要么就是字符串,也是麻烦.属性</p>
<p>名称重构会导致字符串事件失效,也是一个麻烦.用flex的BindingUtil也是基于字符串的,重构名称还是麻烦.</p>
<p>所以flex sdk自动生成这些代码能够给这些需求带来方便.麻烦的是创建一个mxml文件需要手写命名空间,有好处也有孬处,请大家集</p>
<p>思广益一起找出更好的方案.</p>
<p>胡乱写一个例子,请见谅.</p>
<p>下载地址</p>
<p>http://aaaqetools.googlecode.com/files/MXMLPj.rar</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/796/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>google map 返回一定范围的地图</title>
		<link>http://blog.ityao.com/archives/793</link>
		<comments>http://blog.ityao.com/archives/793#comments</comments>
		<pubDate>Thu, 09 Dec 2010 04:04:07 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=793</guid>
		<description><![CDATA[http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&#038;zoom=12&#038;size=400&#215;400&#038;sensor=false 挺好玩的！]]></description>
			<content:encoded><![CDATA[<p>http://maps.google.com/maps/api/staticmap?center=40.714728,-73.998672&#038;zoom=12&#038;size=400&#215;400&#038;sensor=false</p>
<p>挺好玩的！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/793/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>周六烤鸡翅，大家辛苦了！</title>
		<link>http://blog.ityao.com/archives/785</link>
		<comments>http://blog.ityao.com/archives/785#comments</comments>
		<pubDate>Sat, 23 Oct 2010 03:18:45 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=785</guid>
		<description><![CDATA[为理想而加班的同事们，大家辛苦了！ 还在宿舍烤着，先上图给大家解馋！]]></description>
			<content:encoded><![CDATA[<p>为理想而加班的同事们，大家辛苦了！</p>
<p>还在宿舍烤着，先上图给大家解馋！</p>

<a href='http://blog.ityao.com/archives/785/_igp1520' title='_IGP1520'><img width="150" height="150" src="http://blog.ityao.com/wp-content/uploads/2010/10/IGP1520-150x150.jpg" class="attachment-thumbnail" alt="_IGP1520" title="_IGP1520" /></a>
<a href='http://blog.ityao.com/archives/785/_igp1519' title='_IGP1519'><img width="150" height="150" src="http://blog.ityao.com/wp-content/uploads/2010/10/IGP1519-150x150.jpg" class="attachment-thumbnail" alt="_IGP1519" title="_IGP1519" /></a>
<a href='http://blog.ityao.com/archives/785/_igp1518' title='_IGP1518'><img width="150" height="150" src="http://blog.ityao.com/wp-content/uploads/2010/10/IGP1518-150x150.jpg" class="attachment-thumbnail" alt="_IGP1518" title="_IGP1518" /></a>

]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/785/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AIR 2.5 国庆假期回来之后发布</title>
		<link>http://blog.ityao.com/archives/782</link>
		<comments>http://blog.ityao.com/archives/782#comments</comments>
		<pubDate>Tue, 21 Sep 2010 02:35:39 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=782</guid>
		<description><![CDATA[下面是从开发者社区得到的信息！ Michael Chou wrote: Hello Everybody, We are pleased to announce that the AIR 2.5 runtime for Android will be available on the Android Market starting 10/8. On this date we will make an announcement to this prerelease when the AIR runtime is live on the Android Market, after which you can upload your AIR [...]]]></description>
			<content:encoded><![CDATA[<p>下面是从开发者社区得到的信息！</p>
<p>Michael Chou wrote:</p>
<p>Hello Everybody,</p>
<p>We are pleased to announce that the AIR 2.5 runtime for Android will be available on the Android Market starting 10/8.  On this date we will make an announcement to this prerelease when the AIR runtime is live on the Android Market, after which you can upload your AIR applications for end user download. </p>
<p>Because 10/8 is rapidly approaching, we encourage all of you to test your applications against the latest AIR for Android SDK/runtime on this prerelease site.  The 09/16/10 build will be one of our final builds, therefore it’s critical that we identify any issues as soon as possible.  If you discover any new problems with the AIR SDK or runtime, please file a bug immediately.</p>
<p>The AIR 2.5 SDK will be released on  http://www.adobe.com/products/air/ at a later date, but we will drop the final AIR 2.5 SDK/runtime to this prerelease site for you to repackage and test your application before uploading it to the Android Market.  As a reminder, all of you are under an NDA that prevents you from disclosing any of this information publicly. </p>
<p>Please accept our heartfelt thanks in making this prerelease program a successful one (and the largest Adobe prerelease program ever).  The excellent feedback you have given us have been tremendously valuable in enabling us to launch the highest quality product possible.</p>
<p>Sincerely,<br />
The AIR Team </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/782/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优众网上线啦！</title>
		<link>http://blog.ityao.com/archives/771</link>
		<comments>http://blog.ityao.com/archives/771#comments</comments>
		<pubDate>Sat, 11 Sep 2010 04:44:01 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=771</guid>
		<description><![CDATA[9月9日是个好日子！在北京银泰广场优众网开了个新闻发布会，正式宣告启动上线！ 从3月来到天津看到从没见到过的两场雪！也见过漫天红彤彤的沙尘暴！还见过北方春天的烂漫！终于迎来秋天丰收的喜悦了！ 更多现场发布会照片，请访问以下链接！ http://www.ityao.com/ihaveupub/ 要注册码的在IT草民群喊一声！ 如果不知道有什么玩，可以看下面的视频 优众演示]]></description>
			<content:encoded><![CDATA[<p>9月9日是个好日子！在北京银泰广场优众网开了个新闻发布会，正式宣告启动上线！</p>
<p>从3月来到天津看到从没见到过的两场雪！也见过漫天红彤彤的沙尘暴！还见过北方春天的烂漫！终于迎来秋天丰收的喜悦了！<br />
更多现场发布会照片，请访问以下链接！<br />
<a href="http://www.ityao.com/ihaveupub/">http://www.ityao.com/ihaveupub/</a><br />
<img src="http://www.ityao.com/ihaveupub/images/_IGP0599.jpg" alt="互联网大佬们，你认识几个啊！？" /></p>
<p>要注册码的在IT草民群喊一声！</p>
<p>如果不知道有什么玩，可以看下面的视频<br />
<a href='http://i0.ihaveu.com/resource/ihaveu_demo_for_index.m4v' >优众演示</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/771/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://i0.ihaveu.com/resource/ihaveu_demo_for_index.m4v" length="32536876" type="video/mp4" />
		</item>
		<item>
		<title>[转]FlashBuilder中使用fl组件</title>
		<link>http://blog.ityao.com/archives/765</link>
		<comments>http://blog.ityao.com/archives/765#comments</comments>
		<pubDate>Wed, 04 Aug 2010 04:04:18 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[ADOBE RIA]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=765</guid>
		<description><![CDATA[意思就是：用Flash CS创建一个flash，将需要的fl组件拖进舞台，然后导出swc文件 在FlashBuilder中引入该swc，这时就能在代码中直接new这个fl组件了 How to Use Flash CS&#8217;s Components in Flex Builder To generate the .swc file in Flash CS3, we follow these steps: 1) Make a new Flash CS3 ActionScript 3.0 .fla file. 2) Drag the desired component(s) to the Library. In this example, we&#8217;ll drag the TextArea component to the Library. 3) Choose [...]]]></description>
			<content:encoded><![CDATA[<p>意思就是：用Flash CS创建一个flash，将需要的fl组件拖进舞台，然后导出swc文件</p>
<p>在FlashBuilder中引入该swc，这时就能在代码中直接new这个fl组件了</p>
<p>How to Use Flash CS&#8217;s  Components in Flex Builder</p>
<p>To generate the .swc file in Flash CS3, we follow these steps:</p>
<p>1) Make a new Flash CS3 ActionScript 3.0 .fla file.<br />
2) Drag the desired component(s) to the Library. In this example, we&#8217;ll drag the TextArea component to the Library.<br />
3) Choose File &gt; Export &gt; Export Movie.<br />
4) For File name, enter v3components.swf. (We don&#8217;t even want the generated .swf, but there&#8217;s no other way to get the .swc to compile.)<br />
5) Select a folder in which to save the .swf file.<br />
6) Click Save.<br />
7) In the Export Flash Player dialog, check Export SWC.<br />
 <img src='http://blog.ityao.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Click OK.</p>
<p>The preceding steps generate two files, cs3 components.swf and v3components.swc, both of which are placed in the folder selected in Step 5.</p>
<p>Now let&#8217;s use cs3 components.swc in a Flex Builder project. Follow these steps:</p>
<p>1) In Flex Builder, select File &gt; New &gt; ActionScript Project.<br />
2) For Project name, enter &#8220;V3Test.as&#8221;.<br />
3) Click Next.<br />
4) For Main source folder, enter &#8220;src&#8221;.<br />
5) For Main application file, enter &#8220;V3Test.as&#8221;.<br />
6) On the Library path tab, click Add SWC.<br />
7) Browse to the v3components.swc file from the preceding procedure.<br />
 <img src='http://blog.ityao.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Click Finish.<br />
9) Update the code in cs Test.as so it looks like this:</p>
<pre class="brush: plain; title: ; notranslate">
package {
  import flash.display.Sprite;
  import fl.controls.TextArea;
  public class V3Test extends Sprite {
    public function V3Test() {
      var t:TextArea = new TextArea();
      t.text = &quot;You're not cookin'&quot;;
      addChild(t);
    }
  }
</pre>
<p>}<br />
10) Run the project.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/765/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3在本地选择图片并预览(仅限FlashPlayer10+)</title>
		<link>http://blog.ityao.com/archives/761</link>
		<comments>http://blog.ityao.com/archives/761#comments</comments>
		<pubDate>Tue, 03 Aug 2010 09:50:41 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[ADOBE RIA]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=761</guid>
		<description><![CDATA[(仅限FlashPlayer10+)]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;">(仅限FlashPlayer10+)</span></p>
<pre class="brush: plain; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
			   xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
			   xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot; minWidth=&quot;955&quot; minHeight=&quot;600&quot;
			    creationComplete=&quot;application1_creationCompleteHandler(event)&quot;&gt;

	&lt;fx:Script&gt;
		&lt;![CDATA[
			import mx.events.FlexEvent;
			private var file:FileReference;
			private var loader:Loader;
			protected function button1_clickHandler(event:MouseEvent):void
			{
				file = new FileReference();
				file.addEventListener(Event.SELECT,file_selectHandler);
				file.browse ([new FileFilter(&quot;Images(*.jpg;*.jpeg;*.png;*.gif)&quot;,&quot;*.jpg;*.jpeg;*.png;*.gif&quot;)]);
			}

			protected function file_selectHandler(event:Event):void{
				file.removeEventListener(Event.SELECT,file_selectHandler);
				file.addEventListener(Event.COMPLETE,file_completeHandler);
				file.load();
			}

			protected function file_completeHandler(event:Event):void{
				file.removeEventListener(Event.COMPLETE,file_completeHandler);
				loader.loadBytes(file.data);
			}
			protected function loaderCompleteHandler(event:Event):void{
				var $bmd:BitmapData = new BitmapData(loader.width,loader.height,true,0x00FFFFFF);
				$bmd.draw(loader.content);
				this.preview.source = $bmd;
				this.preview.width = 40;
				this.preview.height = 40;
			}

			protected function application1_creationCompleteHandler(event:FlexEvent):void
			{
				loader = new Loader();
				loader.contentLoaderInfo.addEventListener(Event.COMPLETE,loaderCompleteHandler);
				this.swf.addChild(loader);
			}

		]]&gt;
	&lt;/fx:Script&gt;
	&lt;s:layout&gt;
		&lt;s:VerticalLayout/&gt;
	&lt;/s:layout&gt;
	&lt;s:Button click=&quot;button1_clickHandler(event)&quot; label=&quot;Select Image&quot;/&gt;
	&lt;s:HGroup&gt;
		&lt;s:BitmapImage id=&quot;preview&quot;/&gt;
		&lt;mx:SWFLoader id=&quot;swf&quot;/&gt;
	&lt;/s:HGroup&gt;
&lt;/s:Application&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/761/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用RSL发布flex项目需要的build.xml要诀详解</title>
		<link>http://blog.ityao.com/archives/751</link>
		<comments>http://blog.ityao.com/archives/751#comments</comments>
		<pubDate>Fri, 09 Jul 2010 13:04:16 +0000</pubDate>
		<dc:creator>Silver</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[ADOBE RIA]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[VerifyError]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=751</guid>
		<description><![CDATA[遇到了一个ANT编译后不能正常发布使用的问题，于是花了两天（人比较呆）去研究，研究得这么辛苦，当然要把心得写下来，对于ADOBE貌似详细，但语蔫不详的文档作风很是失望! 在此感谢此文作者：http://www.kahunaburger.com/2009/04/08/flash-player-verifyerror-error-1014-with-rsls/ 给了我解决问题的思路 要是用flash build 4.1自带的flex 4.1的sdk的flex-config.xml记得更新里面的默认编译FP版本为10.1,否则还是10.0的 build.properties文件 build.xml文件]]></description>
			<content:encoded><![CDATA[<p>遇到了一个ANT编译后不能正常发布使用的问题，于是花了两天（人比较呆）去研究，研究得这么辛苦，当然要把心得写下来，对于ADOBE貌似详细，但语蔫不详的文档作风很是失望!<br />
在此感谢此文作者：http://www.kahunaburger.com/2009/04/08/flash-player-verifyerror-error-1014-with-rsls/<br />
给了我解决问题的思路</p>
<p>要是用flash build 4.1自带的flex 4.1的sdk的flex-config.xml记得更新里面的默认编译FP版本为10.1,否则还是10.0的</p>
<p>build.properties文件</p>
<pre class="brush: plain; title: ; notranslate">
#Flex SDK 路径
FLEX_HOME=G:\\flexsdk
#根目录
APP_ROOT=G:\\riasource\&#92;&#48;.trunk
#ANT 安装目录
ANT_HOME=D:\\tools\\apache-ant-1.8.0
#本地部署目录(wamp/www)
DEPLOY_DIR=E:/wamp/www/ihaveu2
</pre>
<p>build.xml文件</p>
<pre class="brush: xml; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;project name=&quot;Task Build Main Script&quot; default=&quot;build&quot; basedir=&quot;.&quot;&gt;
	&lt;!-- 加载全局properties --&gt;
	&lt;property file=&quot;../build.properties&quot; /&gt;
	&lt;!-- 源文件路径 --&gt;
	&lt;property name=&quot;SRC_DIR&quot; value=&quot;${basedir}/srcs&quot; /&gt;
	&lt;!-- assets路径 --&gt;
	&lt;property name=&quot;ASSETS_DIR&quot; value=&quot;${basedir}/assets&quot; /&gt;
	&lt;!-- config路径--&gt;
	&lt;property name=&quot;CONFIG_DIR&quot; value=&quot;${APP_ROOT}/main/config/locale&quot; /&gt;
	&lt;!-- 引入flexTasks.jar --&gt;
	&lt;taskdef resource=&quot;flexTasks.tasks&quot; classpath=&quot;${FLEX_HOME}/ant/lib/flexTasks.jar&quot; /&gt;
	&lt;taskdef resource=&quot;net/sf/antcontrib/antlib.xml&quot;&gt;
		&lt;classpath&gt;
			&lt;pathelement location=&quot;${ANT_HOME}/lib/ant-contrib-1.0b3&quot; /&gt;
		&lt;/classpath&gt;
	&lt;/taskdef&gt;

	&lt;!-- 优化和生成项目需要用到的RSL --&gt;
	&lt;target name=&quot;createRSL&quot;&gt;
		&lt;macrodef name=&quot;optimize-rsl&quot;&gt;
			&lt;attribute name=&quot;rsl-dir&quot; /&gt;
			&lt;attribute name=&quot;swc-dir&quot; /&gt;
			&lt;attribute name=&quot;swc-name&quot; /&gt;
			&lt;sequential&gt;
				&lt;unzip src=&quot;@{swc-dir}/@{swc-name}.swc&quot; dest=&quot;@{rsl-dir}&quot;&gt;
					&lt;patternset&gt;
						&lt;include name=&quot;library.swf&quot; /&gt;
					&lt;/patternset&gt;
				&lt;/unzip&gt;
				&lt;java jar=&quot;${FLEX_HOME}/lib/optimizer.jar&quot; fork=&quot;true&quot; failonerror=&quot;true&quot;&gt;
					&lt;jvmarg line=&quot;-ea -DAS3 -DAVMPLUS -Dflexlib=${FLEX_HOME}/frameworks -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false&quot; /&gt;
					&lt;arg line=&quot;'@{rsl-dir}/library.swf' --output '@{rsl-dir}/@{swc-name}.swf' --keep-as3-metadata='Bindable,Managed,ChangeEvent,NonCommittingChangeEvent,Transient,RemoteClass' &quot; /&gt;
				&lt;/java&gt;
				&lt;delete file=&quot;@{rsl-dir}/library.swf&quot; /&gt;
				&lt;java jar=&quot;${FLEX_HOME}/lib/digest.jar&quot; fork=&quot;true&quot; failonerror=&quot;true&quot;&gt;
					&lt;jvmarg line=&quot;-ea -DAS3 -DAVMPLUS -Xms32m -Xmx384m -Dsun.io.useCanonCaches=false&quot; /&gt;
					&lt;arg line=&quot;--digest.rsl-file  @{rsl-dir}/@{swc-name}.swf --digest.swc-path  @{swc-dir}/@{swc-name}.swc&quot; /&gt;
				&lt;/java&gt;
			&lt;/sequential&gt;
		&lt;/macrodef&gt;		

		&lt;!--把项目依赖的swc变成我们需要的RSL文件--&gt;
		&lt;optimize-rsl rsl-dir=&quot;${DEPLOY_DIR}&quot; swc-dir=&quot;${APP_ROOT}/library/bins&quot; swc-name=&quot;ihaveuLib_magazine&quot; /&gt;
		&lt;optimize-rsl rsl-dir=&quot;${DEPLOY_DIR}&quot; swc-dir=&quot;${APP_ROOT}/library/bins&quot; swc-name=&quot;ihaveuLib_main&quot; /&gt;
		&lt;optimize-rsl rsl-dir=&quot;${DEPLOY_DIR}&quot; swc-dir=&quot;${APP_ROOT}/referenceLibs/bins&quot; swc-name=&quot;PureMVC_AS3_MultiCore_1_0_5&quot; /&gt;
		&lt;optimize-rsl rsl-dir=&quot;${DEPLOY_DIR}&quot; swc-dir=&quot;${APP_ROOT}/referenceLibs/bins&quot; swc-name=&quot;TweenLite&quot; /&gt;
	&lt;/target&gt;

	&lt;!-- 构建web项目  --&gt;
	&lt;target name=&quot;build&quot; depends=&quot;createRSL&quot; &gt;
		&lt;exec executable=&quot;svnversion&quot; outputproperty=&quot;revisionVersion&quot; /&gt;
		&lt;copy todir=&quot;${DEPLOY_DIR}&quot;&gt;
			&lt;fileset dir=&quot;${SRC_DIR}/web_runtime&quot;&gt;
				&lt;include name=&quot;**/**&quot; /&gt;
			&lt;/fileset&gt;
		&lt;/copy&gt;

		&lt;copy todir=&quot;${DEPLOY_DIR}/assets&quot;&gt;
			&lt;fileset dir=&quot;${ASSETS_DIR}/web_runtime&quot;&gt;
				&lt;include name=&quot;**/**&quot; /&gt;
			&lt;/fileset&gt;
			&lt;!--
			&lt;fileset dir=&quot;${ASSETS_DIR}/air_runtime&quot;&gt;
				&lt;include name=&quot;**/**&quot; /&gt;
			&lt;/fileset&gt;
			--&gt;
		&lt;/copy&gt;

		&lt;mxmlc file=&quot;${DEPLOY_DIR}/index.mxml&quot;&gt;
			&lt;!-- 方便可以进行远程debug --&gt;
			&lt;debug&gt;true&lt;/debug&gt;
			&lt;!-- 项目需要用到的locale名字，其中在SDK 4.1 里面framework locale目录zh_tw已经改成zh_TW,但千万别信，使用的时候还是要写成zh_tw --&gt;
			&lt;locale&gt;en_US&lt;/locale&gt;
			&lt;locale&gt;zh_CN&lt;/locale&gt;
			&lt;locale&gt;zh_tw&lt;/locale&gt;
			&lt;!--项目的多语言及配置文件目录--&gt;
			&lt;source-path path-element=&quot;${CONFIG_DIR}/en_US&quot; /&gt;
			&lt;source-path path-element=&quot;${CONFIG_DIR}/zh_CN&quot; /&gt;
			&lt;source-path path-element=&quot;${CONFIG_DIR}/zh_tw&quot; /&gt;
			&lt;!-- 依赖的flex 4.1框架的RSL, 注意：顺序不能乱！若不写这一段则会报错：VerifyError: Error #1014: 无法找到类 。估计是由于下面自己定义的RSL依赖次序被优先了 --&gt;
			&lt;runtime-shared-library-path path-element=&quot;${FLEX_HOME}/frameworks/libs/framework.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/framework_4.1.0.16076.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;framework_4.1.0.16076.swz&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${FLEX_HOME}/frameworks/libs/textLayout.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/tlf/1.1.0.604/textLayout_1.1.0.604.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;textLayout_1.1.0.604.swz&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;libs/osmf.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/osmf_flex.4.0.0.13495.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;osmf_flex.4.0.0.13495.swz&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${FLEX_HOME}/frameworks/libs/spark.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/spark_4.1.0.16076.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;spark_4.1.0.16076.swz&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${FLEX_HOME}/frameworks/libs/sparkskins.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/sparkskins_4.1.0.16076.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;sparkskins_4.1.0.16076.swz&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${FLEX_HOME}/frameworks/libs/rpc.swc&quot;&gt;
				&lt;url rsl-url=&quot;http://fpdownload.adobe.com/pub/swz/flex/4.1.0.16076/rpc_4.1.0.16076.swz&quot; policy-file-url=&quot;http://fpdownload.adobe.com/pub/swz/crossdomain.xml&quot;/&gt;
				&lt;url rsl-url=&quot;rpc_4.1.0.16076.swz&quot; /&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;!-- 依赖的第三方RSL, 如果有依赖关系，则应该按照依赖次序 进行定义--&gt;
			&lt;runtime-shared-library-path path-element=&quot;${APP_ROOT}/referenceLibs/bins/PureMVC_AS3_MultiCore_1_0_5.swc&quot;&gt;
				&lt;url rsl-url=&quot;PureMVC_AS3_MultiCore_1_0_5.swf&quot; policy-file-url=&quot;&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${APP_ROOT}/referenceLibs/bins/TweenLite.swc&quot;&gt;
				&lt;url rsl-url=&quot;TweenLite.swf&quot; policy-file-url=&quot;&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;		

			&lt;runtime-shared-library-path path-element=&quot;${APP_ROOT}/library/bins/ihaveuLib_main.swc&quot;&gt;
				&lt;url rsl-url=&quot;ihaveuLib_main.swf&quot; policy-file-url=&quot;&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;runtime-shared-library-path path-element=&quot;${APP_ROOT}/library/bins/ihaveuLib_magazine.swc&quot;&gt;
				&lt;url rsl-url=&quot;ihaveuLib_magazine.swf&quot; policy-file-url=&quot;&quot;/&gt;
			&lt;/runtime-shared-library-path&gt;
			&lt;!-- 指定哪些包是不需要编译进输出的swf, 不写这段会把框架打包进index.swf里面去 --&gt;
			&lt;external-library-path dir=&quot;${FLEX_HOME}/frameworks/libs&quot; append=&quot;true&quot;&gt;
				&lt;include name=&quot;*.swc&quot; /&gt;
				&lt;include name=&quot;air/*.swc&quot; /&gt;
			&lt;/external-library-path&gt;
		&lt;/mxmlc&gt;
	&lt;/target&gt;
&lt;/project&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/751/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

