<?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妖怪 &#187; Adobe Flex</title>
	<atom:link href="http://blog.ityao.com/archives/category/adobe-ria/flex/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>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>[转]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>
		<item>
		<title>Flex 4.1以及Flash Builder 4.0.1更新</title>
		<link>http://blog.ityao.com/archives/749</link>
		<comments>http://blog.ityao.com/archives/749#comments</comments>
		<pubDate>Fri, 02 Jul 2010 01:37:52 +0000</pubDate>
		<dc:creator>Silver</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=749</guid>
		<description><![CDATA[针对Flash Player 10.1的开发工具更新，快更新吧！ Adobe has publicly pushed the Flex 4.1/Flash Builder 4.0.1 update, which includes: The new Layout Mirroring feature for repurposing Flex UIs for deployment in right-to-left locales Native support for Flash Player 10.1 and AIR 2 in the Flex SDK Native support in Flash Builder 4.0.1 for building apps targeting SDK 4.1, AIR [...]]]></description>
			<content:encoded><![CDATA[<p>针对Flash Player 10.1的开发工具更新，快更新吧！</p>
<p>Adobe has publicly pushed the Flex 4.1/Flash Builder 4.0.1 update, which includes:</p>
<p>The new Layout Mirroring feature for repurposing Flex UIs for deployment in right-to-left locales<br />
Native support for Flash Player 10.1 and AIR 2 in the Flex SDK<br />
Native support in Flash Builder 4.0.1 for building apps targeting SDK 4.1, AIR 2 or FP 10.1<br />
Many critical bugfixes and enhancement requests for both Flex SDK and Flash Builder </p>
<p>Adobe has also officially debuted the next release of the Flex SDK, code-named Hero. We share with the world our amazing story of a single unified Flex framework that can be used to build applications for the web, desktop and mobile devices. With today’s debut, we released many new documents and feature specifications, including:</p>
<p>Inaugural launch of the new Hero opensource Flex page<br />
Posting of several new Hero desktop and Hero mobile feature specifications<br />
Updated the labs.adobe.com Flex Mobile content to announce our intent to add mobile development capabilities directly into the core Flex framework, including<br />
o Updating the Flex and Mobile Whitepaper<br />
o Updating the Flex and Mobile FAQ</p>
<p>Please help us spread the word regarding these announcements. You can find more details in the following two blog postings:<br />
Flex SDK 4 and Flash Builder 4 Updates Now Available http://blogs.adobe.com/flex/archives/2010/06/flex_sdk_4_and_flash_builder_4.html<br />
Introducing….Hero! </p>
<p>http://blogs.adobe.com/flex/archives/2010/06/introducinghero.html</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/749/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Flash Player 10.1 and Adobe AIR 2 正式发布</title>
		<link>http://blog.ityao.com/archives/737</link>
		<comments>http://blog.ityao.com/archives/737#comments</comments>
		<pubDate>Fri, 11 Jun 2010 01:55:41 +0000</pubDate>
		<dc:creator>Silver</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=737</guid>
		<description><![CDATA[Rachel Luxemburg wrote: Hi All! Adobe Flash Player 10.1 and Adobe AIR 2 are now available for Windows, Mac and Linux operating systems. To download the runtimes, go to http://get.adobe.com/flashplayer/ for Flash Player and http://get.adobe.com/air/ for AIR 2. More info is posted on the AIR team blog, http://blogs.adobe.com/air/ and the Flash Player Team blog http://blogs.adobe.com/flashplayer/. [...]]]></description>
			<content:encoded><![CDATA[<p>Rachel Luxemburg wrote:</p>
<p>Hi All!</p>
<p>Adobe Flash Player 10.1 and Adobe AIR 2 are now available for Windows, Mac and Linux operating systems. To download the runtimes, go to http://get.adobe.com/flashplayer/ for Flash Player and<br />
http://get.adobe.com/air/ for AIR 2.</p>
<p>More info is posted on the AIR team blog, http://blogs.adobe.com/air/ and the Flash Player Team blog http://blogs.adobe.com/flashplayer/.</p>
<p>We’re really excited that we’re finally &#8220;over the finish line&#8221; with these releases, there’s a lot of new features &#038; some real performance improvements. </p>
<p>Please help spread the word, and enjoy!</p>
<p>Rachel </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/737/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash在IE全屏时 使用Deeplinking修改网址会退出全屏的bug解决方案</title>
		<link>http://blog.ityao.com/archives/722</link>
		<comments>http://blog.ityao.com/archives/722#comments</comments>
		<pubDate>Tue, 01 Jun 2010 12:44:14 +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=722</guid>
		<description><![CDATA[BUG描述： IE浏览器下，Flash全屏时 一旦使用deeplinking修改网址参数，就会导致Flash退出全屏 解决方案： 在全屏时不再修改deeplinking， 而当退出全屏时，使用最后的deeplinking 可以侦听stage类的事件FullScreenEvent. FULL_SCREEN 在任何被添加到了舞台的DisplayObject对象内部,都可以这样写： this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, stage_fullScreenHandler); //侦听全屏变化的事件 private function stage_fullScreenHandler(event:FullScreenEvent):void{ //event.fullScreen为false的时候，是退出全屏，true是进入全屏 if(!event.fullScreen){ //修改deeplinking }]]></description>
			<content:encoded><![CDATA[<p><strong>BUG描述：</strong></p>
<p>IE浏览器下，Flash全屏时  一旦使用deeplinking修改网址参数，就会导致Flash退出全屏</p>
<p><strong> 解决方案： </strong></p>
<p>在全屏时不再修改deeplinking，  而当退出全屏时，使用最后的deeplinking</p>
<p>可以侦听stage类的事件FullScreenEvent. FULL_SCREEN</p>
<p>在任何被添加到了舞台的DisplayObject对象内部,都可以这样写：</p>
<p>this.stage.addEventListener(FullScreenEvent.FULL_SCREEN, stage_fullScreenHandler);</p>
<p>//侦听全屏变化的事件</p>
<p>private function stage_fullScreenHandler(event:FullScreenEvent):void{</p>
<p>//event.fullScreen为false的时候，是退出全屏，true是进入全屏</p>
<p>if(!event.fullScreen){</p>
<p>//修改deeplinking</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/722/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex4 SkinnableContainer,BorderContainer隐藏子内容</title>
		<link>http://blog.ityao.com/archives/708</link>
		<comments>http://blog.ityao.com/archives/708#comments</comments>
		<pubDate>Tue, 01 Jun 2010 09:52:05 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[ADOBE RIA]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=708</guid>
		<description><![CDATA[SkinnableContainer及其子类BorderContainer等在添加了子内容后， 即使子内容宽高超过了容器本身的宽高，子内容也会被正常显示出来， SkinnableContainer是无法裁剪子内容的，而且也没有默认属性可以设置 但如果想实现容器裁剪子内容，可以用以下方法实现 &#60;s: SkinnableContainer id=&#8221;myBC&#8221; creationComplete=&#8221;myBC.contentGroup.clipAndEnableScrolling = true&#8221;&#62; 即：在容器创建完成后设置它的属性contentGroup的clipAndEnableScrolling为true 原理： BorderContainer继承自SkinnableContainer，这两个组件都不是自身添加显示对象的，而是使用contentGroup作为子内容的容器， 而contentGroup实际上是一个Group对象 Group本身有一个属性：clipAndEnableScrolling，当它为true时，就会裁剪内容，默认是false]]></description>
			<content:encoded><![CDATA[<p>SkinnableContainer及其子类BorderContainer等在添加了子内容后，</p>
<p>即使子内容宽高超过了容器本身的宽高，子内容也会被正常显示出来，</p>
<p>SkinnableContainer是无法裁剪子内容的，而且也没有默认属性可以设置</p>
<p>但如果想实现容器裁剪子内容，可以用以下方法实现</p>
<p>&lt;s: SkinnableContainer id=&#8221;myBC&#8221; creationComplete=&#8221;myBC.contentGroup.clipAndEnableScrolling = true&#8221;&gt;</p>
<p>即：在容器创建完成后设置它的属性contentGroup的clipAndEnableScrolling为true</p>
<p><strong> 原理：</strong></p>
<p>BorderContainer继承自SkinnableContainer，这两个组件都不是自身添加显示对象的，而是使用contentGroup作为子内容的容器，</p>
<p>而contentGroup实际上是一个Group对象 Group本身有一个属性：clipAndEnableScrolling，当它为true时，就会裁剪内容，默认是false</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/708/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FlashFlex发布可访问本地的SWF</title>
		<link>http://blog.ityao.com/archives/703</link>
		<comments>http://blog.ityao.com/archives/703#comments</comments>
		<pubDate>Wed, 26 May 2010 02:57:06 +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=703</guid>
		<description><![CDATA[无论是Flex还是Flash编译后的SWF都只可方位网络或者只可访问本地数据，不可以同时访问二者， Flex默认是只可访问网络，要把Flex编译后的SWF设为只可访问本地数据模式，要在Flex项目的编译参数中增加：-use-network=false 在Flash IDE中，设置方式：在菜单工具栏中选择File(文件)-&#62;Publish Settings(发布设置)，在弹出窗口中选择Flash标签，在Local playback中选择需要的访问模式]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">无论是Flex还是Flash编译后的SWF都只可方位网络或者只可访问本地数据，不可以同时访问二者，</div>
<div></div>
<div>Flex默认是只可访问网络，要把Flex编译后的SWF设为只可访问本地数据模式，要在Flex项目的编译参数中增加：-use-network=false</div>
<div>在Flash IDE中，设置方式：在菜单工具栏中选择File(文件)-&gt;Publish Settings(发布设置)，在弹出窗口中选择Flash标签，在Local playback中选择需要的访问模式</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/703/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex4动态加载和切换CSS</title>
		<link>http://blog.ityao.com/archives/699</link>
		<comments>http://blog.ityao.com/archives/699#comments</comments>
		<pubDate>Wed, 26 May 2010 02:43:54 +0000</pubDate>
		<dc:creator>Jack</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[ADOBE RIA]]></category>

		<guid isPermaLink="false">http://blog.ityao.com/?p=699</guid>
		<description><![CDATA[Flex4中动态加载CSS文件的方式已经和Flex3有了一定的区别 主要步骤如下： 1.编写不同的CSS文件 见后文 2.将CSS文件编译成SWF文件 在FlashBuilder中右键CSS文件，选择Compile CSS to SWF， 这时bin-debug目录下的对应位置就会生成一个与CSS同名的SWF文件。 选中后该选项前会有勾，之后只要修改了CSS文件，就会自动编译成SWF 2.用styleManager加载SWF 代码中这样写： this.styleManager.loadStyleDeclarations2(&#8220;MyCss1.swf&#8221;);   //代码中填写上一步由CSS生成的SWF文件路径 CSS写法： MyCss1.css /* CSS file */ /*命名空间*/ @namespace s &#8220;library://ns.adobe.com/flex/spark&#8221;; @namespace mx &#8220;library://ns.adobe.com/flex/mx&#8221;; /*使用skin类来定义皮肤，所以要用ClassReference函数*/ s&#124;List{ skin-class:ClassReference(&#8220;skins.ListSkin1&#8243;); } /*符号#代表指定的ID*/ s&#124;Label#labelExamples{ font-size:14; color:#990099; } s&#124;CheckBox{ font-size:9; color:#FF3300; } s&#124;RadioButton{ font-size:92; color:#990099; } s&#124;Button{ font-size:32; color:#FF3300; } 注：CSS中无法设置ItemRenderer，所以如果要实现不同CSS用不同的ItemRenderer，为各个CSS指定不同的skin类，并且在skin类中分别设置的ItemRenderer 例如，我的例子中要为List设置不同的ItemRenderer，就不要写成&#60;s:List itemRenderer=&#8221;itemRenderers.ListItemRenderer1&#8243;&#8230;/&#62; 而要在CSS中为List指定skinClass为skins.ListSkin1，代码：skin-class:ClassReference(&#8220;skins.ListSkin1&#8243;); 然后，在skin.ListSkin1中设置ItemRenderer，代码： [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>Flex4中动态加载CSS文件的方式已经和Flex3有了一定的区别</p>
<p>主要步骤如下：</p>
<h5>1.编写不同的CSS文件</h5>
<p>见后文</p>
<h5>2.将CSS文件编译成SWF文件</h5>
<p>在FlashBuilder中右键CSS文件，选择Compile CSS to SWF，<br />
<span id="more-699"></span><br />
这时bin-debug目录下的对应位置就会生成一个与CSS同名的SWF文件。</p>
<p>选中后该选项前会有勾，之后只要修改了CSS文件，就会自动编译成SWF</p>
<h5>2.用styleManager加载SWF</h5>
<p>代码中这样写：</p>
<p>this.styleManager.loadStyleDeclarations2(&#8220;MyCss1.swf&#8221;);   //代码中填写上一步由CSS生成的SWF文件路径</p>
<hr />
<h4>CSS写法：</h4>
<h4>MyCss1.css</h4>
<p>/* CSS file */</p>
<p>/*命名空间*/</p>
<p>@namespace s &#8220;library://ns.adobe.com/flex/spark&#8221;;</p>
<p>@namespace mx &#8220;library://ns.adobe.com/flex/mx&#8221;;</p>
<p>/*使用skin类来定义皮肤，所以要用ClassReference函数*/</p>
<p>s|List{</p>
<p>skin-class:ClassReference(&#8220;skins.ListSkin1&#8243;);</p>
<p>}</p>
<p>/*符号#代表指定的ID*/</p>
<p>s|Label#labelExamples{</p>
<p>font-size:14;</p>
<p>color:#990099;</p>
<p>}</p>
<p>s|CheckBox{</p>
<p>font-size:9;</p>
<p>color:#FF3300;</p>
<p>}</p>
<p>s|RadioButton{</p>
<p>font-size:92;</p>
<p>color:#990099;</p>
<p>}</p>
<p>s|Button{</p>
<p>font-size:32;</p>
<p>color:#FF3300;</p>
<p>}</p>
<p><strong><span style="font-family: mceinline;">注：CSS中无法设置ItemRenderer，所以如果要实现不同CSS用不同的ItemRenderer，为各个CSS指定不同的skin类，并且在skin类中分别设置的ItemRenderer</span></strong></p>
<p><strong><span style="font-family: mceinline;">例如，我的例子中要为List设置不同的ItemRenderer，就不要写成&lt;s:List itemRenderer=&#8221;itemRenderers.ListItemRenderer1&#8243;&#8230;/&gt;</span></strong></p>
<p><strong><span style="font-family: mceinline;">而要在CSS中为List指定skinClass为skins.ListSkin1，代码：skin-class:ClassReference(&#8220;skins.ListSkin1&#8243;);</span></strong></p>
<p><strong><span style="font-family: mceinline;">然后，在skin.ListSkin1中设置ItemRenderer，代码： </span></strong></p>
<p><strong><span style="font-family: mceinline;">&lt;s:DataGroup id=&#8221;dataGroup&#8221; itemRenderer=&#8221;itemRenderers.ListItemRenderer1&#8243;&gt;</span></strong></p>
<p><span style="font-family: mceinline;"> &lt;s:layout&gt;&#8230;</span></p>
<p><span style="font-family: mceinline;"><br />
</span></p>
<div>
<h4>MyCss2.css——另一个CSS文件</h4>
<p>/* CSS file */</p>
<p>@namespace s &#8220;library://ns.adobe.com/flex/spark&#8221;;</p>
<p>@namespace mx &#8220;library://ns.adobe.com/flex/mx&#8221;;</p>
<p>/* 使用了另一个Skin类*/</p>
<p>s|List{</p>
<p>skin-class:ClassReference(&#8220;skins.ListSkin2&#8243;);</p>
<p>}</p>
<p>s|Label#labelExamples{</p>
<p>font-size:42;</p>
<p>color:#009966;</p>
<p>}</p>
<p>s|CheckBox{</p>
<p>font-size:22;</p>
<p>color:#009966;</p>
<p>}</p>
<p>s|RadioButton{</p>
<p>font-size:20;</p>
<p>color:#009966;</p>
<p>}</p>
<p>s|Button{</p>
<p>font-size:12;</p>
<p>color:#00FFFF;</p>
<p>}</p>
<hr />完整源代码：<a rel="attachment wp-att-700" href="http://blog.ityao.com/archives/699/switchcssinruntime">SwitchCSSInRuntime</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.ityao.com/archives/699/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

