<?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>Lite3&#039;s Blog</title>
	<atom:link href="http://www.lite3.cn/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.lite3.cn/blog</link>
	<description>ActionScript Flash Flex</description>
	<lastBuildDate>Sun, 05 Sep 2010 04:06:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>无聊,做个测试吧 有多少人相信缘</title>
		<link>http://www.lite3.cn/blog/?p=932</link>
		<comments>http://www.lite3.cn/blog/?p=932#comments</comments>
		<pubDate>Sun, 05 Sep 2010 04:06:37 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[缘]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=932</guid>
		<description><![CDATA[麻烦请到QQ空间投个票,O(∩_∩)O谢谢了 http://user.qzone.qq.com/402465350/vote/1037382278 无聊,做个测试吧 有多少人相信缘 来源: Lite3&#039;s Blog 随机文章2009年06月7日 -- AS3 单例类 (0)2009年07月8日 -- 位操作 设置 取消 位 (3)2009年06月6日 -- 检测flash的运行在本地还是网络 (0)2010年06月27日 -- 弱引用 addEventListener (0)2009年08月13日 -- 获取MovieClip跳帧后的子元件 (0)2010年08月8日 -- Compile your AS3 projects with Ant + Flex SDK (all Open Source) (1)2009年12月31日 -- 关于博客不能访问 (6)2009年10月23日 -- ByteArray各方法详解 (0)2009年07月21日 -- MyEclipse flex 工具栏 图标 (0)2009年06月7日 -- [...]<p><a href="http://www.lite3.cn/blog/?p=932">无聊,做个测试吧 有多少人相信缘</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=932</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>绕过flash安全沙箱限制(security sandbox)</title>
		<link>http://www.lite3.cn/blog/?p=927</link>
		<comments>http://www.lite3.cn/blog/?p=927#comments</comments>
		<pubDate>Sat, 04 Sep 2010 21:33:00 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[crossdomain]]></category>
		<category><![CDATA[安全沙箱]]></category>
		<category><![CDATA[策略文件]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=927</guid>
		<description><![CDATA[问题描述: 当我们加载外部域的图片或swf,并且想对其内容进去操作时报一个flash安全沙箱错误. 类似这样的: SecurityError: Error #2122: 安全沙箱冲突:Loader.content:http://lite3.cn/crossSecurityBoxDemo.swf 不能访问 http://b42.photo.store.qq.com/http_imgload.cgi?/rurl4_b=c8ae3bff5c6354a730c66740bed7197d25b276019f2ccc813beeef7b691d53eb9441e431c6175aa52feec0446ad35d14d17ca519b506ce4ae738f3632368b83ebf652078300a04d2d14983a03abe72fb754bb231&#38;a=46&#38;b=42 。需要一个策略文件(crossdomain.xml)，但在加载此媒体时未设置 checkPolicyFile 标志。 有这样几种安全沙箱错误: 需要一个策略文件，但在加载此媒体时未设置 checkPolicyFile 标志. 有一个策略文件,但未被授权访问或拒绝访问. 加载swf并要脚本互访时,未被授权访问,可以用Security.allowDomain解决 解决方法: 用Adobe建议的方法,添加策略文件,添加Security.allowDomain 通过loadBytes绕过安全沙箱 第一种方法是常规的方法,但是很多时候我们加载的图片不是自己的,对方服务器肯定不会给我们授权的. 那么这时第二种方法就派上用场了. 下面先看个demo再看源码. 核心代码为: private function completeHandler&#40;e:Event&#41;:void &#123; try &#123; loader.content; &#125;catch &#40;err:SecurityError&#41; &#123; loader.loadBytes&#40;loader.contentLoaderInfo.bytes&#41;; &#125; &#125; 示例源码下载 绕过flash安全沙箱限制(security sandbox) 来源: Lite3&#039;s Blog 随机文章2009年08月17日 -- TextField.restrict 文本输入限制 (0)2009年08月13日 -- 获取MovieClip跳帧后的子元件 (0)2009年09月28日 -- 博客bug修正 (8)2009年08月11日 [...]<p><a href="http://www.lite3.cn/blog/?p=927">绕过flash安全沙箱限制(security sandbox)</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=927</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chorme(Google浏览器)中使用dubeg版的flash player</title>
		<link>http://www.lite3.cn/blog/?p=923</link>
		<comments>http://www.lite3.cn/blog/?p=923#comments</comments>
		<pubDate>Mon, 30 Aug 2010 16:00:03 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[chorme]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[flashplayer]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=923</guid>
		<description><![CDATA[chorme(Google浏览器)自5.0.375.86版本起已经内置了flashplayer了,它会自动更新你的flashplayer到最新版本. 但是这里是flash player是release版的,不是debug版的. 现在我们开始在chorme上安装dubeg版的flashplayer. 打开chorme,在地址栏里输入chrome://plugins/并回车. 在打开的插件列表里找到 Shockwave Flash 并停用它. 到http://www.adobe.com/support/flashplayer/downloads.html下载debug版的flashplayer plugin插件并安装. OK,现在再去本博客右上角看看,是不是已经变成debug版的flashplayer了 Chorme(Google浏览器)中使用dubeg版的flash player 来源: Lite3&#039;s Blog 随机文章2009年06月10日 -- 今天换最新版的WordPress (1)2009年07月31日 -- ASDoc tags 文档注释标签 (0)2009年06月7日 -- 另类菜单效果 (0)2009年06月7日 -- 像素级碰撞检测类 (0)2010年07月25日 -- jsfl 在Flash CS5中选择图形 (0)2009年06月6日 -- TweenLite中文帮助手册 (0)2009年10月23日 -- ByteArray各方法详解 (0)2009年06月7日 -- AS3 单例类 (0)2009年06月12日 -- String扩展类 (0)2009年06月24日 -- MultiTimer 用法 (3)<p><a href="http://www.lite3.cn/blog/?p=923">Chorme(Google浏览器)中使用dubeg版的flash player</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=923</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flex eclipse Alt+/ 失效</title>
		<link>http://www.lite3.cn/blog/?p=915</link>
		<comments>http://www.lite3.cn/blog/?p=915#comments</comments>
		<pubDate>Thu, 26 Aug 2010 10:55:31 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Alt+/]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=915</guid>
		<description><![CDATA[这个问题困扰了好长时间,一直不能自动导入包. 今天问了Google才知道要修改默认设置的. 设置如下: 打开 Window -&#62; Preferences -&#62; General -&#62; Keys : 把word completion的快捷键设置alt+C 把Content Assist的快捷键由ctrl+space改成alt+/ 再看看Alt+/ 哈哈OK了 flex eclipse Alt+/ 失效 来源: Lite3&#039;s Blog 随机文章2010年08月5日 -- ProgressivePlusLoader 渐进式加载图像 更新 (3)2009年06月24日 -- MultiTimer 单一计时器 更高效 更安全 (2)2009年06月30日 -- AIR Process terminated without establishing connection to debugger. (0)2009年07月5日 -- NumberText (0)2009年12月31日 -- 关于博客不能访问 (6)2010年01月17日 -- flash_weather [...]<p><a href="http://www.lite3.cn/blog/?p=915">flex eclipse Alt+/ 失效</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=915</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>中国文字博物馆</title>
		<link>http://www.lite3.cn/blog/?p=856</link>
		<comments>http://www.lite3.cn/blog/?p=856#comments</comments>
		<pubDate>Sat, 21 Aug 2010 15:21:20 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[中国文字博物馆]]></category>
		<category><![CDATA[安阳]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=856</guid>
		<description><![CDATA[中国文字博物馆在安阳开馆了,还是免费的哦 先上几张图片,后面还有个小视频 中国文字博物馆 来源: Lite3&#039;s Blog 随机文章2009年06月24日 -- MultiTimer 单一计时器 更高效 更安全 (2)2009年07月21日 -- MyEclipse flex 工具栏 图标 (0)2009年06月8日 -- AMF 学习1数据类型 (0)2009年07月27日 -- Error creating AIR file: 303 (0)2009年06月6日 -- 检测flash的运行在本地还是网络 (0)2009年06月22日 -- getter setter 用法 (0)2009年07月5日 -- NumberText (0)2009年06月7日 -- 位移操作符 (0)2009年12月10日 -- ProgressiveLoader 渐进式加载图像 (11)2010年03月28日 -- throw error 异常 (2)<p><a href="http://www.lite3.cn/blog/?p=856">中国文字博物馆</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=856</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让页面变得更快一点-HTML解析原理</title>
		<link>http://www.lite3.cn/blog/?p=859</link>
		<comments>http://www.lite3.cn/blog/?p=859#comments</comments>
		<pubDate>Thu, 19 Aug 2010 15:45:57 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[html/css]]></category>
		<category><![CDATA[web前端]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=859</guid>
		<description><![CDATA[转至:http://justjavac.javaeye.com/blog/644235 Web页面运行在各种各样的浏览器当中，浏览器载入、渲染页面的速度直接影响着用户体验。非常不幸的是，效率最低的IE浏览器仍然占领者绝大多数市场份额，这已经严重制约了互联网的发展（感叹一下：“马赛克和IE——阻碍人类文明发展的绊脚石!”）。 简单地说，页面渲染就是浏览器将html代码根据CSS定义的规则显示在浏览器窗口中的这个过程。先来大致了解一下浏览器都是怎么干活的： 用户输入网址（假设是个html页面，并且是第一次访问），浏览器向服务器发出请求，服务器返回html文件； 浏览器开始载入html代码，发现&#60;head&#62;标签内有一个&#60;link&#62;标签引用外部CSS文件； 浏览器又发出CSS文件的请求，服务器返回这个CSS文件； 浏览器继续载入html中&#60;body&#62;部分的代码，并且CSS文件已经拿到手了，可以开始渲染页面了； 浏览器在代码中发现一个&#60;img&#62;标签引用了一张图片，向服务器发出请求。此时浏览器不会等到图片下载完，而是继续渲染后面的代码； 服务器返回图片文件，由于图片占用了一定面积，影响了后面段落的排布，因此浏览器需要回过头来重新渲染这部分代码； 浏览器发现了一个包含一行Javascript代码的&#60;script&#62;标签，赶快运行它； Javascript脚本执行了这条语句，它命令浏览器隐藏掉代码中的某个&#60;div&#62; （style.display=”none”）。杯具啊，突然就少了这么一个元素，浏览器不得不重新渲染这部分代码； 终于等到了&#60;/html&#62;的到来，浏览器泪流满面…… 等等，还没完，用户点了一下界面中的“换肤”按钮，Javascript让浏览器换了一下&#60;link&#62;标签的CSS路径； 浏览器召集了在座的各位&#60;div&#62;&#60;span&#62;&#60;ul&#62;&#60;li&#62;们，“大伙儿收拾收拾行李，咱得重新来过……”，浏览器向服务器请求了新的CSS文件，重新渲染页面。 浏览器每天就这么来来回回跑着，要知道不同的人写出来的html和css代码质量参差不齐，说不定哪天跑着跑着就挂掉了。好在这个世界还有这么一群人——页面重构工程师，平时挺不起眼，也就帮视觉设计师们切切图啊改改字，其实背地里还是干了不少实事的。 说到页面为什么会慢？那是因为浏览器要花时间、花精力去渲染，尤其是当它发现某个部分发生了点变化影响了布局，需要倒回去重新渲染，内行称这个回退的过程叫reflow。 reflow几乎是无法避免的。现在界面上流行的一些效果，比如树状目录的折叠、展开（实质上是元素的显示与隐藏）等，都将引起浏览器的 reflow。鼠标滑过、点击……只要这些行为引起了页面上某些元素的占位面积、定位方式、边距等属性的变化，都会引起它内部、周围甚至整个页面的重新渲染。通常我们都无法预估浏览器到底会reflow哪一部分的代码，它们都彼此相互影响着。 reflow问题是可以优化的，我们可以尽量减少不必要的reflow。比如开头的例子中的&#60;img&#62;图片载入问题，这其实就是一个可以避免的reflow——给图片设置宽度和高度就可以了。这样浏览器就知道了图片的占位面积，在载入图片前就预留好了位置。 另外，有个和reflow看上去差不多的术语：repaint，中文叫重绘。如果只是改变某个元素的背景色、文字颜色、边框颜色等等不影响它周围或内部布局的属性，将只会引起浏览器repaint。repaint的速度明显快于reflow（在IE下需要换一下说法，reflow要比repaint 更缓慢）。下次将通过一系列的实验说明在Firefox、IE等浏览器下reflow的优化。 让页面变得更快一点-HTML解析原理 来源: Lite3&#039;s Blog 随机文章2009年10月30日 -- JAR运行出现ClassNotFoundException解决办法 (1)2010年09月5日 -- 绕过flash安全沙箱限制(security sandbox) (0)2009年12月3日 -- Notepaper 桌面便签 (5)2009年06月7日 -- 纯AS相册, 未完 (4)2009年08月8日 -- mysql-administrator的安装与使用（图文） (0)2009年06月6日 -- Flash 关于Java运行时环境初始化时出现错误 (0)2009年06月7日 -- TextArea TextField 文本 即时显示最后一行 (1)2009年07月29日 [...]<p><a href="http://www.lite3.cn/blog/?p=859">让页面变得更快一点-HTML解析原理</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=859</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile your AS3 projects with Ant + Flex SDK (all Open Source)</title>
		<link>http://www.lite3.cn/blog/?p=844</link>
		<comments>http://www.lite3.cn/blog/?p=844#comments</comments>
		<pubDate>Sun, 08 Aug 2010 08:28:18 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[FD]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=844</guid>
		<description><![CDATA[英文原文:http://www.blog.elimak.com/2009/07/tutorial/ 本文将讲述: 怎样安装Ant应用Ant编译你的AS3项目. 与此安装工作将允许你对你的代码编辑工作独立。 然后你可以用任意编辑器打开项目并编译,而不用Flash IDE 或者 Flex. ——————————————————————————————————— 安装要用的资源: ——————————————————————————————————— 1 – 下载要用的资源: * Ant.zip * Flex SDK * tools.jar ( zip ) 解压 Ant.zip 和 Flex SDK 到相应的目录: 例如 c:\ant c:\flex_sdk_4.0.0 解压 tools.zip 到Java jre的lib目录 例如我的是: C:\Program Files\Java\jre6\bin 2 -添加 Ant 的路径 到系统变量: 必须先添加Ant的环境变量才能使Ant正常工作. *打开系统属性 * 选择 高级-&#62;环境变量. 在新窗口中找到Path 属性并点击编辑 添加 "c:\ant;" (没有引号) [...]<p><a href="http://www.lite3.cn/blog/?p=844">Compile your AS3 projects with Ant + Flex SDK (all Open Source)</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=844</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>博客更新</title>
		<link>http://www.lite3.cn/blog/?p=839</link>
		<comments>http://www.lite3.cn/blog/?p=839#comments</comments>
		<pubDate>Fri, 06 Aug 2010 18:24:43 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[SWFObject]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=839</guid>
		<description><![CDATA[O(∩_∩)O哈哈~ 今天把SWFObject给去掉了,以后RSS也能看到swf演示了 博客更新 来源: Lite3&#039;s Blog 随机文章2009年06月23日 -- Lite3 google搜索排第一位 (0)2009年12月10日 -- ProgressiveLoader 渐进式加载图像 (11)2009年06月19日 -- 太公分猪肉 (4)2009年06月20日 -- AS树 (9)2009年10月9日 -- AS 函数重载 (2)2010年03月16日 -- AS2 ComboBox 皮肤设置 (2)2010年03月25日 -- 推荐一款Java反编译器，比较好用 (1)2010年09月5日 -- 绕过flash安全沙箱限制(security sandbox) (0)2009年06月21日 -- 超牛的 AsGirl 已更新为动态 (19)2009年06月7日 -- TextArea TextField 文本 即时显示最后一行 (1)<p><a href="http://www.lite3.cn/blog/?p=839">博客更新</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=839</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ProgressivePlusLoader 渐进式加载图像 更新</title>
		<link>http://www.lite3.cn/blog/?p=784</link>
		<comments>http://www.lite3.cn/blog/?p=784#comments</comments>
		<pubDate>Wed, 04 Aug 2010 17:48:32 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[myLib]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[ProgressiveLoader]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=784</guid>
		<description><![CDATA[渐进式加载类. 老版本:http://www.lite3.cn/blog/?p=616 这个版本跟上个版本不同,主要修复加载时会闪烁的问题. ProgressivePlusLoader package cn.lite3.net &#123; import flash.display.DisplayObject; import flash.display.LoaderInfo; import flash.display.Sprite; import flash.errors.IOError; import flash.events.Event; import flash.events.IOErrorEvent; import flash.events.ProgressEvent; import flash.events.SecurityErrorEvent; import flash.system.LoaderContext; import flash.display.Loader; import flash.net.URLRequest; import flash.net.URLStream; import flash.utils.ByteArray; &#160; /** * 加载完成 */ &#91;Event&#40;name = &#34;complete&#34;, type = &#34;flash.events.Event&#34;&#41;&#93; &#160; /** * 加载进度 */ &#91;Event&#40;name = &#34;progress&#34;, type = &#34;flash.events.ProgressEvent&#34;&#41;&#93; [...]<p><a href="http://www.lite3.cn/blog/?p=784">ProgressivePlusLoader 渐进式加载图像 更新</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=784</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>flash getSize 方法</title>
		<link>http://www.lite3.cn/blog/?p=769</link>
		<comments>http://www.lite3.cn/blog/?p=769#comments</comments>
		<pubDate>Sat, 24 Jul 2010 19:10:40 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[内存]]></category>
		<category><![CDATA[未公开]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=769</guid>
		<description><![CDATA[今天看优化 Flash 平台的性能帮助文档时发现一个未公开的顶级函数 getSize() 猜想getSize的接口可能是: /** * 获取对象的内存占用量 * @param p 任意类型,甚至是Class * @return 一个数值,单位是byte */ public function getSize&#40;p:*&#41;:uint; 不过这个方法只能在时间轴上使用,在类里就不能用了. 然后我测试了下flash里有没有内存对齐的概念. 不过获得的内存值都是4的倍数, 如果里面有属性占用为8，则结果则为8的倍数. 相关链接 http://help.adobe.com/zh_CN/as3/mobile/WS4bebcd66a74275c3-576ba64d124318d7189-8000.html http://help.adobe.com/zh_CN/as3/mobile/WS4bebcd66a74275c3-576ba64d124318d7189-7fff.html flash getSize 方法 来源: Lite3&#039;s Blog 随机文章2009年08月11日 -- flash导出自定义类元件供flex调用 (0)2010年01月18日 -- 博客地址更新 (6)2009年06月7日 -- AS 对象 深度复制 (0)2009年06月15日 -- SimpleTextLoader最简单的加载 (0)2009年06月12日 -- (转) 小谈网络游戏同步 (0)2009年06月26日 -- AS画斑马线,画虚线 (0)2009年06月16日 -- [...]<p><a href="http://www.lite3.cn/blog/?p=769">flash getSize 方法</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=769</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jsfl 在Flash CS5中选择图形</title>
		<link>http://www.lite3.cn/blog/?p=762</link>
		<comments>http://www.lite3.cn/blog/?p=762#comments</comments>
		<pubDate>Sat, 24 Jul 2010 17:20:15 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[jsfl]]></category>
		<category><![CDATA[selection]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=762</guid>
		<description><![CDATA[在Flash IDE里的一些重复劳动用jsfl是个很好的解决办法. 这里是中文帮助http://help.adobe.com/zh_CN/flash/cs/extend/index.html 当然也可以配合Flash的历史面板来学习(Ctrl+F10 或者 Window=&#62;Other Panels=&#62;History) 不过这个也不是全都能用的,在不同的Flash 版本上也会出现不同的灵异事件 fl.getDocumentDOM().selection 选择图形 先在flash里画一个简单图形(选中后会出现类似下图的网状遮罩) // 选中舞台上所有对象 fl.getDocumentDOM&#40;&#41;.selectAll&#40;&#41;; // 获取选中对象数组 var arr = fl.getDocumentDOM&#40;&#41;.selection; // 取消选择 fl.getDocumentDOM&#40;&#41;.selectNone&#40;&#41;; // 设置选中对象为刚获取的对象数组, // 但是这个操作在Flash CS5里会忽略 简单图形(Shape,不是组,也不是绘制对象) // 在Flash CS4里却没有这样的问题 fl.getDocumentDOM&#40;&#41;.selection = arr; jsfl 在Flash CS5中选择图形 来源: Lite3&#039;s Blog 随机文章2009年06月24日 -- MultiTimer 用法 (3)2009年11月21日 -- java连接SqlServer 数据库 (0)2009年06月7日 -- 鼠标扩展类 MouseUtil (5)2009年06月7日 [...]<p><a href="http://www.lite3.cn/blog/?p=762">jsfl 在Flash CS5中选择图形</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=762</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>弱引用 addEventListener</title>
		<link>http://www.lite3.cn/blog/?p=757</link>
		<comments>http://www.lite3.cn/blog/?p=757#comments</comments>
		<pubDate>Sun, 27 Jun 2010 08:12:05 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[addEventListener]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[弱引用]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=757</guid>
		<description><![CDATA[之前只是知道尽量用强引用,不要用弱引用,因为弱引用会被垃圾回收. 对于flash.utils.Dictionary倒是没有什么疑问.但EventDispatcher.addEventListener就不明白具体是侦听器被回收了,还是侦听者被回收了 昨天有看了一些文章,又想起这个问题,就想要理解透彻,于是又仔细看了下API文档. Class-level member functions are not subject to garbage collection, so you can set useWeakReference to true for class-level member functions without subjecting them to garbage collection. If you set useWeakReference to true for a listener that is a nested inner function, the function will be garbge-collected and no longer persistent. If you [...]<p><a href="http://www.lite3.cn/blog/?p=757">弱引用 addEventListener</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=757</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://lite3.googlecode.com/files/WZ_woMenDouShiHaoHaiZi.mp3" length="1386" type="audio/mpeg" />
		</item>
		<item>
		<title>Flex工程里TextField在fp10.1下不能输入中文的解决办法</title>
		<link>http://www.lite3.cn/blog/?p=744</link>
		<comments>http://www.lite3.cn/blog/?p=744#comments</comments>
		<pubDate>Fri, 25 Jun 2010 16:34:52 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[bugs]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[TextField]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=744</guid>
		<description><![CDATA[前段时间项目测试突然发现中文输入不正常,有时IME会失效,反复测试后发现这是fp10.1的一个bug. 然后提交到 http://bugs.adobe.com/jira/browse/FP-4813 可是正式版的flashplayer已经发布了,要修复这个bug也要等到下个flashplayer版本 我们的项目可等不了那么久,于是找找其他解决办法, Google,百度后都没有提到过类似的问题. 设置IME.enabled = true也不管用. 仔细测试后发现:Flex的TextInput可以输入中文,既然flex的可要输入,那么TextField也应该可要输入中文的. 于是翻开mx.controls.TextInput的源码仔细查看. 几经测试后终于在一处注释处发现了一点线索. We don't call IME.conversionMode here. We call it only on focusIn. Thus fringe cases like setting imeMode dynamically without moving focus, through keyboard events, wouldn't change the mode. Also getting imeMode asynch. from the server which gets delayed and set later after focusIn [...]<p><a href="http://www.lite3.cn/blog/?p=744">Flex工程里TextField在fp10.1下不能输入中文的解决办法</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=744</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>URLLoader 404 Error 与 complete事件</title>
		<link>http://www.lite3.cn/blog/?p=713</link>
		<comments>http://www.lite3.cn/blog/?p=713#comments</comments>
		<pubDate>Wed, 31 Mar 2010 08:59:34 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[complete]]></category>
		<category><![CDATA[URLLoader]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=713</guid>
		<description><![CDATA[最开始发现是在AS2里用MovieClipLoader加载图片,那次地址写错了,但是依然有onLoadComplete事件触发. 请看下面的代码: var mc:MovieClip = _root.createEmptyMovieClip&#40;&#34;mc&#34;, 1&#41;; var loader:MovieClipLoader = new MovieClipLoader&#40;&#41;; var listener:Object = &#123;&#125;; loader.addListener&#40;listener&#41;; &#160; // 加载一个错误的图片地址,但只要有数据返回(哪怕是404)就会触发complete事件 loader.loadClip&#40;&#34;http://www.lite3.cn/errorJpg.jpg&#34;, mc&#41;; &#160; listener.onLoadComplete = function&#40;target:MovieClip&#41;:Void &#123; trace&#40;&#34;this is loadComplete!&#34;&#41;; &#125; OK,上面明明是一个错误的图片地址,竟然会触发onLoadComplete事件. 然后用浏览器打开这个错误的地址看了下,是一个404Error页面.又换了好多个地址,不同域名的,可是依然会触发onLoadComplete事件. 所以猜想可能是只要有数据返回就会触发onLoadComplete事件吧(onLoadInit也是一样). 测试LoadVars后更加断定我的猜想,请看代码: var loader:LoadVars = new LoadVars&#40;&#41;; loader.onLoad = function &#40;success:Boolean&#41;:Void &#123; trace&#40;&#34;success = &#34; + success&#41;; trace&#40;loader&#41;; &#125; // 请更改为非跨域的不存在的地址 loader.load&#40;&#34;http://www.lite3.cn/fdsafdsa&#34;&#41;; [...]<p><a href="http://www.lite3.cn/blog/?p=713">URLLoader 404 Error 与 complete事件</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=713</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>throw error 异常</title>
		<link>http://www.lite3.cn/blog/?p=699</link>
		<comments>http://www.lite3.cn/blog/?p=699#comments</comments>
		<pubDate>Sat, 27 Mar 2010 16:54:48 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[异常]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=699</guid>
		<description><![CDATA[前几天在调试一个AS2跟后台通信的程序,一直看不到正常的数据显示,然后就挨行trace,终于发现问题所在了. 原来是用了AS2的一个JSON类,如果格式不是json格式就会抛出异常,因为我们的数据格式不会错的,要么就没有数据,否则不会出现格式错误的,所有就没有try catch. 刚好这次测试的时候有一个元素里没有数据,json串为""(空字符串).然后解析的时候抛了个异常,我没有捕获,就终止那段程序. 请看AS2的JSON里抛异常的方式: function error&#40;m&#41; &#123; throw &#123; name: 'JSONError', message: m, at: at - 1, text: text &#125;; &#125; 这里直接抛出一个Object而不是Error类的实例, 然而AS2的异常提示跟AS3不同. AS3: 在装有debug flashplayer的浏览器里弹出一个窗口提示错误. 在IDE的output面板里显示类似下面的错误提示. Error: this is an error! at _fla::MainTimeline/frame1&#40;&#41; AS2: 在装有debug flashplayer的浏览器里不提示任何错误. 在IDE的output面板里仅输出抛出的对象或类型的String形式. this is an error! OK,看了这两个不同,再看AS2的JSON抛出异常的方式,它仅仅抛出一个Object对象. 然后Object对象转到String默认是 [object Object] 这样一个字符串的. 当我看到这个字符串输出后,首先想到的是哪里直接输出对象了.根本没有想到会是JSON抛出的异常. 所以问题就很难被发现,最后终于在我一行一行trace下找到原因了 好了,有了上面的经验,我可以定制一些规则,好让问题更容易的被发现. throw异常的时候一定要抛出Error或者Error的子类的实例. 因为用Error有下列的优势: Error本身就有toString()方法,我们就不会再为模糊的[object Object]而烦恼了. [...]<p><a href="http://www.lite3.cn/blog/?p=699">throw error 异常</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=699</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Java 条件编译 Conditional Compilation</title>
		<link>http://www.lite3.cn/blog/?p=658</link>
		<comments>http://www.lite3.cn/blog/?p=658#comments</comments>
		<pubDate>Thu, 25 Mar 2010 06:24:19 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[条件编译]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=658</guid>
		<description><![CDATA[根据Java编译器的优化的机制，Java也能够提供条件编译。对于条件设为false的语句，编译器将不对条件覆盖的代码段生成字节码。 不仅可以用简单的boolean常量值来做条件编译,还可以用字符串常量及任何其他类型的常量. 例如: 简单的boolean常量. final boolean isDebug = true; if&#40;isDebug&#41; &#123; // debug模式状态 System.out.println&#40;&#34;现在是debug模式!&#34;&#41;; &#125; 字符串常量. 这里要注意的是不能用equals方法,必须用简单的判断符号(==, != ....) final String debug = &#34;true&#34;; final String currentMode = debug; if&#40;currentMode == debug&#41; &#123; // debug模式状态 System.out.println&#40;&#34;现在是debug模式!&#34;&#41;; &#125; 其他常量就不设置了 当然我们可以写个CompilationConfig类,里面仅设置所有要用条件编译的选项. 这里我写了个示例,呵呵,记录下以后不要忘记了,也希望能够帮助需要这方向东东的人 ConmpilationCofig.java package cn.lite3.javaConditionalCompilationTest; &#160; /** * 这是一个配置条件编译的类,实际编译后这个类并不跟其他文件关联 * @author lite3 * */ public class CompilationConfig [...]<p><a href="http://www.lite3.cn/blog/?p=658">Java 条件编译 Conditional Compilation</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=658</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐一款Java反编译器，比较好用</title>
		<link>http://www.lite3.cn/blog/?p=654</link>
		<comments>http://www.lite3.cn/blog/?p=654#comments</comments>
		<pubDate>Thu, 25 Mar 2010 03:57:02 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Decompiler]]></category>
		<category><![CDATA[反编译]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=654</guid>
		<description><![CDATA[     推荐一款Java反编译器，也使用了挺久的了，感觉还是很好用，就拿出和大家分享一下。 这款反编译器叫 "Java Decompiler", 由 Pavel Kouznetsov开发，目前最新版本为0.2.5. 它由 C++开发，并且官方可以下载 windows、linux和苹果Mac Os三个平台的可执行程序。  本人之所以认为它还不错，是其有下面几个功能： 支持对整个Jar文件进行反编译，并本源代码可直接点击进行相关代码的跳转 支持众多Java编译器的反编译(支持泛型， Annotation和enum枚举类型) jdk1.1.8 jdk1.3.1 jdk1.4.2 jdk1.5.0 jdk1.6.0 jikes-1.22 harmony-jdk-r533500 Eclipse Java Compiler v_677_R32x, 3.2.1 release jrockit90_150_06    图示: 快速查找源文件功能(Ctrl+Shift+T) 安装方便.只有600K,直接运行即可。 支持文件的拖放功能，源代码高亮显示   当然对于反编译的效果，感觉还可以。当然在本人使用过程也出现过，编译效果不佳的情况。但从总体上来看已经让我挺满意了，呵呵。 Good Luck! Yours Matthew! 本文链接来自:http://www.blogjava.net/xmatthew/archive/2008/10/28/237203.html 推荐一款Java反编译器，比较好用 来源: Lite3&#039;s Blog 可能你还喜欢这些:2010年03月25日 -- Java 条件编译 Conditional Compilation (0)2009年11月21日 -- java连接SqlServer [...]<p><a href="http://www.lite3.cn/blog/?p=654">推荐一款Java反编译器，比较好用</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=654</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AS2 ComboBox 皮肤设置</title>
		<link>http://www.lite3.cn/blog/?p=652</link>
		<comments>http://www.lite3.cn/blog/?p=652#comments</comments>
		<pubDate>Mon, 15 Mar 2010 17:06:19 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[ComboBox]]></category>
		<category><![CDATA[skin]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=652</guid>
		<description><![CDATA[现在仍然在做AS2,先汗一个 用到了ComboBox组件,但是这个组件有点难看,跟我们的界面不搭. 又重新学习AS2的组件外观.共有两个ComboBox,都需要不同的外观. 按照帮助上的一步一步的做,Ctrl+Enter 什么效果也没有. 然后又测试其他组件都有效果的,猜想可能是外观属性名写错了. 经过多番测试,终于功夫不负有心人 被有试出来了. ComboBox的外观属性为 downArrowDisabledName downArrowDownName downArrowUpName downArrowUpName 在实例组件上写代码: onClipEvent&#40;initialize&#41; &#123; downArrowDisabledName = &#34;ComboDownArrowDown_&#34;; downArrowDownName = &#34;ComboDownArrowDown_&#34;; downArrowUpName = &#34;ComboDownArrowDown_&#34;; downArrowOverName = &#34;ComboDownArrowDown_&#34;; &#125; AS2 ComboBox 皮肤设置 来源: Lite3&#039;s Blog 可能你还喜欢这些:2010年03月31日 -- URLLoader 404 Error 与 complete事件 (6)2010年03月28日 -- throw error 异常 (2)<p><a href="http://www.lite3.cn/blog/?p=652">AS2 ComboBox 皮肤设置</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=652</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>冒泡排序</title>
		<link>http://www.lite3.cn/blog/?p=627</link>
		<comments>http://www.lite3.cn/blog/?p=627#comments</comments>
		<pubDate>Thu, 21 Jan 2010 15:06:06 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[sort]]></category>
		<category><![CDATA[冒泡排序]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=627</guid>
		<description><![CDATA[这里是普通的冒泡排序: /** * 普通的冒泡排序 * @param arr */ function bubbleSort&#40;arr:Array&#41;:void &#123; var len:int = arr.length; for &#40;var i:int = 0; i &#60; len; i++&#41; &#123; for &#40;var j:int = i + 1; j &#60; len; j++&#41; &#123; if &#40;arr&#91;i&#93; &#60; arr&#91;j&#93;&#41; &#123; var t:* = arr&#91;i&#93;; arr&#91;i&#93; = arr&#91;j&#93;; arr&#91;j&#93; = t; &#125; &#125; &#125; [...]<p><a href="http://www.lite3.cn/blog/?p=627">冒泡排序</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=627</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>博客地址更新</title>
		<link>http://www.lite3.cn/blog/?p=625</link>
		<comments>http://www.lite3.cn/blog/?p=625#comments</comments>
		<pubDate>Mon, 18 Jan 2010 10:07:29 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=625</guid>
		<description><![CDATA[由于域名就要到期了，续费时出了点问题，过几天lite3.cn 有可能不能正常访问，请见谅。 请先使用 http://binggan.d248.5kkweb.com/  访问，我会尽快续费或更换域名的。 博客地址更新 来源: Lite3&#039;s Blog 可能你还喜欢这些:2009年06月16日 -- 博客搬家成功O(∩_∩)O哈哈~ (8)<p><a href="http://www.lite3.cn/blog/?p=625">博客地址更新</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=625</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>flash_weather 手机天气预报</title>
		<link>http://www.lite3.cn/blog/?p=621</link>
		<comments>http://www.lite3.cn/blog/?p=621#comments</comments>
		<pubDate>Sun, 17 Jan 2010 15:32:08 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[flash lite]]></category>
		<category><![CDATA[lite]]></category>
		<category><![CDATA[weather]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=621</guid>
		<description><![CDATA[应用说明: 一次仅联网读取两天的天气信息 没次联网信息在本地保存24小时(以系统时间为准) flash lite3 应用, 适用于S60v5 机型 下载地址☞ flash_weather 手机天气预报 来源: Lite3&#039;s Blog 随机文章2009年06月7日 -- 像素级碰撞检测类 (0)2009年06月8日 -- AMF 学习1数据类型 (0)2010年08月7日 -- 博客更新 (0)2009年09月30日 -- 二次贝塞尔曲线实例 (11)2009年07月29日 -- dispatchEvent (2)2009年08月11日 -- flash导出自定义类元件供flex调用 (0)2010年01月21日 -- 冒泡排序 (11)2009年08月18日 -- NativeMenu ContextMenuEvent (1)2010年09月5日 -- 无聊,做个测试吧 有多少人相信缘 (0)2009年11月1日 -- 缩放盒子 ScaleBox 同时兼容Flex (4)<p><a href="http://www.lite3.cn/blog/?p=621">flash_weather 手机天气预报</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=621</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>关于博客不能访问</title>
		<link>http://www.lite3.cn/blog/?p=619</link>
		<comments>http://www.lite3.cn/blog/?p=619#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:04:55 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=619</guid>
		<description><![CDATA[因服务器某些原因,导致服务器IP被电信封闭, 本博客惨遭不能访问噩运 不过服务商及时更换IP, 现已经可以正常访问了 关于博客不能访问 来源: Lite3&#039;s Blog 随机文章2009年07月6日 -- 禁用 WordPress 自动保存 (0)2009年08月11日 -- flash导出自定义类元件供flex调用 (0)2009年06月20日 -- AS树 (9)2009年06月8日 -- AMF 学习1数据类型 (0)2009年06月19日 -- 太公分猪肉 (4)2009年06月21日 -- 超牛的 AsGirl 已更新为动态 (19)2009年07月6日 -- AIR 模式化窗口 (3)2009年06月7日 -- 纯AS相册, 未完 (4)2009年12月3日 -- Notepaper 桌面便签 (5)2009年09月5日 -- 博客inove 主题修改 (0)<p><a href="http://www.lite3.cn/blog/?p=619">关于博客不能访问</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=619</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ProgressiveLoader 渐进式加载图像</title>
		<link>http://www.lite3.cn/blog/?p=616</link>
		<comments>http://www.lite3.cn/blog/?p=616#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:23:14 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[myLib]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[ProgressiveLoader]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=616</guid>
		<description><![CDATA[新版本:http://www.lite3.cn/blog/?p=784 渐进式加载类,用法跟Loader差不多. 不同点: 当加载流错误时只能获取到 "Error #2124: 加载的文件为未知类型。" 侦听contentLoaderInfo的Progress事件的bytesLoaded,bytesTotal是整个文件的已加载字节和总字节. contentLoaderInfo.bytesLoaded, contentLoaderInfo.bytesTotal指当前loader里的字节数和总字节. ProgressiveLoader package cn.lite3.net &#123; import flash.display.LoaderInfo; import flash.errors.IOError; import flash.events.Event; import flash.events.IOErrorEvent; import flash.events.ProgressEvent; import flash.events.SecurityErrorEvent; import flash.system.LoaderContext; import flash.display.Loader; import flash.net.URLRequest; import flash.net.URLStream; import flash.utils.ByteArray; &#160; /** * 渐进式加载类 * 用法跟Loader一样, * &#60;p&#62;&#60;b&#62;不同点:&#60;/b&#62;&#60;/p&#62; * 1.当加载流错误时只能获取到 &#34;Error #2124: 加载的文件为未知类型。&#34; &#60;br/&#62; * 2.侦听contentLoaderInfo的Progress事件的bytesLoaded,bytesTotal是整个文件的已加载字节和总字节.&#60;br/&#62; * 3.contentLoaderInfo.bytesLoaded, contentLoaderInfo.bytesTotal指当前loader里的字节数和总字节 [...]<p><a href="http://www.lite3.cn/blog/?p=616">ProgressiveLoader 渐进式加载图像</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=616</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Notepaper 桌面便签</title>
		<link>http://www.lite3.cn/blog/?p=605</link>
		<comments>http://www.lite3.cn/blog/?p=605#comments</comments>
		<pubDate>Thu, 03 Dec 2009 08:18:15 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Notepaer]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=605</guid>
		<description><![CDATA[以后更新请到http://www.lite3.cn/blog/?page_id=718 这次更新或许会在安装时出现问题,请删除原安装目录下的Notepaper文件夹即可! 大家有什么建议,请在这里留言,我会在下个版本中添加或修改,O(∩_∩)O谢谢支持 Notepaper 桌面便签 来源: Lite3&#039;s Blog 可能你还喜欢这些:2009年07月27日 -- Error creating AIR file: 303 (0)<p><a href="http://www.lite3.cn/blog/?p=605">Notepaper 桌面便签</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=605</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>java连接SqlServer 数据库</title>
		<link>http://www.lite3.cn/blog/?p=591</link>
		<comments>http://www.lite3.cn/blog/?p=591#comments</comments>
		<pubDate>Sat, 21 Nov 2009 08:03:03 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=591</guid>
		<description><![CDATA[前些天终于把聊天室弄的差不多了,要放服务器上测试,接着就发现下面的错误 java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 现在想到的就是是否有打sp3补丁 果不其然,真的没打,赶紧下载并安装,不幸的是不能安装补丁的时候出错,总是打不来,sp4也不行, 然后换 另一个驱动依然是报错 java.sql.SQLException: Network error IOException: Connection refused: connect 就想卸掉SqlServer重新装下, 只是里面的数据库很多,用户很很多,万一弄不好就惨了. 四处求医问药依旧无果,都是说升级sp3补丁,无奈升级不了,总是打一半就报错. 又一次登录到服务器,仔细对比服务器的SqlServer与我本机的各项参数,突然看到SqlServer用了代理,我本机没有,心想是不是因为用了代理的原因啊, 然后赶忙把本机的应用代理,重新启动SqlServer,耶, 果真报错了,java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. 修改java里连接数据库的地址为代理地址,测试, OK,一切顺利的运行了,再也没有了讨厌的连接错误了,O(∩_∩)O哈哈~ 所以,java连接数据库 出现java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.并不一定非要打sp3补丁或许是其他一些什么原因所致. 比较常见的原因:数据库名,IP写错, 又或者是用了代理,然后陪着IP仍然用的 localhost 127.0.0.1 下面写下简单的SqlServer数据库的连接: jtds驱动 try &#123; String host = [...]<p><a href="http://www.lite3.cn/blog/?p=591">java连接SqlServer 数据库</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=591</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>缩放盒子 ScaleBox 同时兼容Flex</title>
		<link>http://www.lite3.cn/blog/?p=565</link>
		<comments>http://www.lite3.cn/blog/?p=565#comments</comments>
		<pubDate>Sun, 01 Nov 2009 13:49:09 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Demo]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=565</guid>
		<description><![CDATA[更新说明: 0.9.1 修复 缩放后托选右下角是缩放点,整个盒子一起移动的bug. 看着是不是跟QQ截屏里的缩放盒子很像啊 就是仿照它的做的. 这个缩放盒子是为了提供给图片剪切工具用的,不是容器,不能把图片放到缩放盒子里(当然添加一个内容层也很简单) 但是我感觉没必要那么多功能在里面. 属性和方法: dragEnable: 是否可拖动 scaleEnable: 是否可缩放 is8dot: 是否8个缩放控制点, 否则为4个缩放控制点 boxWidth: 缩放盒子的宽度, 仅包含黑线边框的宽度 boxHeight:缩放盒子的高度, 仅包含黑线边框的高度 resize(boxWidth:Number, boxHeight:Number):void 同时设置宽高,相比一个一个设置效率高点 事件: resize: 当boxWidth,boxHeight修改后触发, 可用Event.RESIZE 常量 box_move:当位置改变后触发,这个没有现成的常量,请直接用 "box_move" 适用环境: Flash 及 AS工程: 可以直接拿来用,无需修改 Flex 工程: 仅需修改基类为 UIComponent即可,其他无需修改 注意事项: 缩放盒子不是容器,请不用调用向ScaleBox里添加显示对象. 用AS改变宽高时,请用boxWidth,boxHeight 属性, 或,resize(boxWidth,boxHeight)方法 请不要直接设置 width,height属性 由于用了fp10的鼠标样式,请设置fp版本为10, 若用fp9请删除鼠标样式相关代码 ScaleBox: package cn.lite3.tools &#123; import flash.display.Sprite; [...]<p><a href="http://www.lite3.cn/blog/?p=565">缩放盒子 ScaleBox 同时兼容Flex</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=565</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>AS 调用外部嵌入字体</title>
		<link>http://www.lite3.cn/blog/?p=559</link>
		<comments>http://www.lite3.cn/blog/?p=559#comments</comments>
		<pubDate>Thu, 29 Oct 2009 19:28:47 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[嵌入字体]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=559</guid>
		<description><![CDATA[今天群里的迷同志问我怎么用AS嵌入字体,很久以前的东西了,现在不怎么记得了, 还是重新做一遍温习温习,然后也放这里来以免以后全忘掉了,温习的机会都没了.   首先在新建个fla命名为font.fla, Ctrl+L 调出库面板. 右键点击库面板的空白处,新建字体.... 调出 字体元件属性 窗口. 选择要嵌入的字体, 并选择为ActionScript 导出. 填入自己的类名. 确定并Ctrl+Enter 导出 font.swf OK,字体库已经准备就绪了,下面是应用篇 下面是应用篇的为文档类. 提示: Font.registerFont(MyFont); 注册全局字体 new TextFormat(myFont.fontName); 应用字体 txt.embedFonts = true; 设置嵌入字体 以上3条必须同时用到才OK的. package &#123; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.events.ProgressEvent; import flash.net.URLRequest; import flash.system.LoaderContext; import flash.text.Font; import flash.text.TextField; import flash.text.TextFormat; import flash.utils.getDefinitionByName; &#160; /** * [...]<p><a href="http://www.lite3.cn/blog/?p=559">AS 调用外部嵌入字体</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=559</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JAR运行出现ClassNotFoundException解决办法</title>
		<link>http://www.lite3.cn/blog/?p=547</link>
		<comments>http://www.lite3.cn/blog/?p=547#comments</comments>
		<pubDate>Thu, 29 Oct 2009 16:44:58 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[jar]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=547</guid>
		<description><![CDATA[最近在弄个聊天室,由于要跟数据库通信,用到了JDBC的3个jar,在eclipse里OK的,但布置到服务器坏事了,不知道怎么弄JDBC的3个jar了 写个autoStart.bat java -jar chatServer.jar pause 运行报错: F:\mydocuments\java project\socketTest\release&#62;java -jar chatServer.jar java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cn.lite3.chatServer.managers.DBManager.&#60;init&#62;(DBManager.java:14) at cn.lite3.chatServer.ChatServer.&#60;clinit&#62;(ChatServer.java:15) 群里朋友说 用 fatJar ,可是我安装了不管用,没有fatjar的选项. 然后看到到网上乱搜一通,功夫不负有心人,终于让我逮到一篇好文章 http://www.abcjava.com/html/JAVA/J2SE/2009/0902/720.html 自己写manifest.mf文件. 手动添加JDBC要用到的3个jar文件,mssqlserver.jar,msutil.jar,msbase.jar 新建个文件,命名为 manifest.mf,写入以下内容,(当然要根据你自己的东西修改的) manifest.mf [...]<p><a href="http://www.lite3.cn/blog/?p=547">JAR运行出现ClassNotFoundException解决办法</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=547</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Java跟AS用socket通信</title>
		<link>http://www.lite3.cn/blog/?p=532</link>
		<comments>http://www.lite3.cn/blog/?p=532#comments</comments>
		<pubDate>Sun, 25 Oct 2009 00:56:27 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=532</guid>
		<description><![CDATA[最近在做一个聊天室,后台用Java(其他的我也不懂) 其实可以用XMLSocket来做的,也很方便,但我用了Socket,更灵活些 为了不见乱码,并且方便些,我选择了UTF-8作为字符串编码。 Ok,说下碰到的几个问题。 AS这边不时的报Error: Error #2030: 遇到文件尾。 原因: 没有足够的字节可读(就是字节太少了). 但是我已经做了缓存,所有Java传来的数据都接收完了. 客户端: readUTF. 服务端:UTF-8. 然后把Java 传来的数据一个字节一个字节的分析, 发现 readUTF 需要现读一个16位(2个字节)的头标示字符流的长度, 而Java直接写字节流,没有写长度. 换用readUTFBytes搞定, XMLSocket有个好处就是你不需要自己从接受的数据中分离每个包,XMLSocket用 "\0" 表示一个包的结束. Socket 的好处是它很灵活,你可以传任何数据, 但是需要自己从数据中分离每个包.O(∩_∩)O~ OK, 最简单的办法:像XMLSocket一样用"\0"表示一个包的结束. // 缓存区 var byteBuffer:ByteArray = new ByteArray&#40;&#41;; &#160; // 有数据来了. private function socketDataHandler&#40;e:ProgressEvent&#41;:void &#123; var len:uint = socket.bytesAvailable; while &#40;--len &#62;= 0&#41; &#123; var b:int = [...]<p><a href="http://www.lite3.cn/blog/?p=532">Java跟AS用socket通信</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=532</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ByteArray各方法详解</title>
		<link>http://www.lite3.cn/blog/?p=534</link>
		<comments>http://www.lite3.cn/blog/?p=534#comments</comments>
		<pubDate>Fri, 23 Oct 2009 14:32:01 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[ByteArray]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=534</guid>
		<description><![CDATA[这段时间在做socket, 当然就用到ByteArray了,O(∩_∩)O~, 写下ByteArray各方法含义. objectEncoding: 设置ByteArray读写Object是编码格式, 仅对writeObject,readObject这两个方法有用. endian:指示多字节数字的最高有效字节位于字节序列的最前面。 一般不用设置, 默认是Endian.BIG_ENDIAN. bytesAvailable, length, position 这3个属性是相关的. position:ByteArray的当前读写点, 可读写. (当然length == 1, 设置position = 5, 这样也不会报错) bytesAvailable:ByteArray当前可读取的字节数,只读. length:ByteArray 的总字节数, 可读写. (如果设置的值比实际的小,则截短ByteArray,但不释放, 否则在右侧用0填充) 如果position不越界,那么bytesAvailable == length - position; clear():void:释放ByteArray的资源,并设置length=0,(position不变). length 也可以显示的设置为0, 但 length=0 不释放ByteArray的资源. var bytes:ByteArray = new ByteArray&#40;&#41;; bytes.writeInt&#40;10&#41;; // length = 4 bytes.length = 0; // 仅截短bytes,并不释放资源 bytes.length [...]<p><a href="http://www.lite3.cn/blog/?p=534">ByteArray各方法详解</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=534</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cool down 效果更新,优化CPU</title>
		<link>http://www.lite3.cn/blog/?p=510</link>
		<comments>http://www.lite3.cn/blog/?p=510#comments</comments>
		<pubDate>Tue, 13 Oct 2009 08:49:35 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[myLib]]></category>
		<category><![CDATA[算法]]></category>
		<category><![CDATA[cool down]]></category>
		<category><![CDATA[CPU]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=510</guid>
		<description><![CDATA[转动一周结束后点击可重新开始。 非常抱歉，只是想着实现效果，没留意CPU，竟然那么高， 然后又想了一个简单的办法， 可是没放游戏里测试过，所以不知道是否可以实际应用。 现在用bitmap做底，所以添加了 dispose 方法。start方法去掉了开始角度。 好了，废话不多说了，直接看代码。 CoolDown cool down 效果的类： package cn.lite3.display &#123; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.DisplayObject; import flash.display.Shape; import flash.display.Sprite; import flash.events.Event; import flash.geom.ColorTransform; import flash.geom.Point; import flash.geom.Rectangle; import flash.utils.getTimer; &#160; /** * 在一周结束后，触发 flash.events.Event.COMPLETE 事件 * @eventType flash.events.Event */ &#91;Event&#40;name=&#34;complete&#34;, type=&#34;flash.events.Event&#34;&#41;&#93; &#160; /** * 一个可转动的扇形,就像游戏里的冷却时间一样&#60;br /&#62; * 可以附加到任意显示对象,也不用理会目标是否缩放，注册点位置&#60;br /&#62; [...]<p><a href="http://www.lite3.cn/blog/?p=510">cool down 效果更新,优化CPU</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=510</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>游戏里冷却时间效果 cool down 扇形</title>
		<link>http://www.lite3.cn/blog/?p=506</link>
		<comments>http://www.lite3.cn/blog/?p=506#comments</comments>
		<pubDate>Sun, 11 Oct 2009 11:33:03 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[myLib]]></category>
		<category><![CDATA[cool down]]></category>
		<category><![CDATA[MovableSector]]></category>
		<category><![CDATA[Sector]]></category>
		<category><![CDATA[扇形]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=506</guid>
		<description><![CDATA[非常抱歉，这个只想到效果，忘记了CPU，我又重新写了个，请看http://www.lite3.cn/blog/?p=510 左边是一个冷却时间效果，右边是一个扇形 这里是一个游戏里常用到的冷却时间效果。 先是在这里看到 wizim 写的这个效果没有完工，又看到有好多人回帖说想要这样的效果，然后我就把它写成类，写的更通用些。 可以附加到任意显示对象上，只需目标显示对象在显示列表里。 当然，要是flex里用，则需继承UIComponent。 废话就不多说了，直接上代码。 Sector 这是一个扇形类： package cn.lite3.display &#123; import flash.display.Sprite; /** * 一个扇形类 * * www.lite3.cn * &#60;a herf=&#34;http://www.lite3.cn&#34;&#62;www.lite3.cn&#60;/a&#62; * @author lite3 */ public class Sector extends Sprite &#123; private var _radius:Number; private var _angle:Number; private var _startFrom:Number; private var _fullColor:uint; private var _lineColor:uint; private var _lineThickness:Number; private var [...]<p><a href="http://www.lite3.cn/blog/?p=506">游戏里冷却时间效果 cool down 扇形</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=506</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AS 函数重载</title>
		<link>http://www.lite3.cn/blog/?p=496</link>
		<comments>http://www.lite3.cn/blog/?p=496#comments</comments>
		<pubDate>Fri, 09 Oct 2009 12:14:34 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[函数重载]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=496</guid>
		<description><![CDATA[C++ 里有很多好用的特性，比如函数重载： 函数重载：同一个函数名，根据不同的参数列表来调用不同的函数。 不同的参数列表：不同是参数个数，不同的参数类型，或者参数类型顺序不同。 跟函数返回类型没关系。 当然函数重载也包括构造函数重载。 有关更详细的函数重载请看这里。 至于AS的函数重载请看下面。 AS并没有像C++一样提供语言级的支持，但是AS里有个关键字 ... (rest) ... (rest) 指定函数将接受任意数目的用逗号分隔的参数。 OK,有了它，我们可以模拟函数重载。 我们自己先规定好，可接受的参数列表，然后去做相应的处理。 好处：使用者只需使用一个函数名即可实现不同的功能，当然这些功能应该都是相近的 坏处：没有了编译时错误，使因手写出错的几率增加 如果上面的没怎么明白，请看下面的代码，看了之后相信你就会明白，然后说：“哦，原来是这样啊，AS真的很强大！ ” package &#123; import flash.display.Sprite; /** * www.lite3.cn * &#60;a herf=&#34;http://www.lite3.cn&#34;&#62;www.lite3.cn&#60;/a&#62; * @author lite3 */ public class Test extends Sprite &#123; &#160; public function Test&#40;&#41; &#123; var sumer:Sumer = new Sumer&#40;&#41;; // 添加一个数字 sumer.add&#40;1&#41;; // 添加一个字符串类型的数字 [...]<p><a href="http://www.lite3.cn/blog/?p=496">AS 函数重载</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=496</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>二次贝塞尔曲线实例</title>
		<link>http://www.lite3.cn/blog/?p=474</link>
		<comments>http://www.lite3.cn/blog/?p=474#comments</comments>
		<pubDate>Wed, 30 Sep 2009 09:12:18 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[bezierLine]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/blog/?p=474</guid>
		<description><![CDATA[实在抱歉，是二次贝塞尔曲线，不是一次杯赛儿曲线。o(╯□╰)o 鼠标拖动划线,然后拖动变成曲线 前天在天地会看到一朋友说，想要先画一条线，然后可以随意拖动这条线，然后我就想到了二次贝塞尔曲线，真是个好东东，于是就做了个实例，一来给那位朋友帮个忙，二来我博客也好久没更新AS相关的东东了，呵呵 这里只贴出来BezierLine的代码，要是想看整个实例的源码，在最下面有链接下载的。:smile: 废话少说，上代码 BezierLine： package cn.lite3.display &#123; import flash.display.Sprite; import flash.events.MouseEvent; /** * lite3@qq.com * www.lite3.cn * @author lite3 */ public class BezierLine extends Sprite &#123; // 终点坐标 private var endX:Number; private var endY:Number; &#160; private var centerX:Number; private var centerY:Number; &#160; // 控制点坐标 private var _controlX:Number; private var _controlY:Number; &#160; // 线条样式属性 [...]<p><a href="http://www.lite3.cn/blog/?p=474">二次贝塞尔曲线实例</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=474</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>博客bug修正</title>
		<link>http://www.lite3.cn/blog/?p=463</link>
		<comments>http://www.lite3.cn/blog/?p=463#comments</comments>
		<pubDate>Mon, 28 Sep 2009 05:18:14 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=463</guid>
		<description><![CDATA[之前博客在IE里一直显示不正常，页面不是居中对齐的， 然后我我就说 请大家用FF 看，O(∩_∩)O~，估计N多人会骂的 还有RSS 也不能用，一直没时间修理，实在对不住了 昨天终于把他们全弄好了 总结下昨天的战果： 修正了IE 里显示不正常 修正了RSS解析错误 修正了Kill IE6 不显示问题 修正了小东东==&#62;图片剪切 的 鼠标滚轮跟网页滚轮冲突 修改菜单名为中文 修改主题 为 inove 升级swfobject 到2.0 增加了qq等订阅链接 增加了邮箱订阅 去掉了之前的评论算术验证 其实有些问题是我自己修主题的时候没弄好造成的，导致问题最多的是 BOM 问题， 原因是我用记事本打开再保存为UTF-8 ， 原来 UTF-8有两种编码，一种是 无BOM 格式，一种是有BOM格式，然后朋友推荐用Notepad++ 可以设置无BOM格式，N多问题自己就解决了 博客bug修正 来源: Lite3&#039;s Blog 可能你还喜欢这些:2010年06月26日 -- Flex工程里TextField在fp10.1下不能输入中文的解决办法 (1)2009年09月5日 -- 博客WordPress 修改 (0)2009年08月7日 -- Vector.unshift bug已修复 (0)2009年07月6日 -- 禁用 WordPress [...]<p><a href="http://www.lite3.cn/blog/?p=463">博客bug修正</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=463</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>AS3 条件编译</title>
		<link>http://www.lite3.cn/blog/?p=404</link>
		<comments>http://www.lite3.cn/blog/?p=404#comments</comments>
		<pubDate>Thu, 24 Sep 2009 16:27:13 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[条件编译]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=404</guid>
		<description><![CDATA[本文翻译至：http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html 知道C/C++ 有条件编译，一直想着AS要是也有条件编译就好了，今天搜了半天Google，终于让我找到了 下面翻译livedocs.adobe.com上一篇文章，英文不怎么好，有些是Google翻译的，然后我再纠正下语句，大家不要见怪。 想要包含或排除某些代码块，你可以使用条件编译。mxmlc编译器允许你在编译时传递常量值到应用程序。通常，您传递一个布尔值用于包含或排除调试代码。下面的例子通过使用一个Boolean常量内联代码块： CONFIG::debugging &#123; // Execute debugging code here. &#125; 你可以使用compiler.define编译器选项传递一些常量。这些常量可以是一个Boolean,String,Number或表达式。然后，这些常量可以在应用程序的源代码中作为全局常量访问。 要使用difine选项，可定义一个命名空间配置常量，变量名和值使用以下语法： -define=namespace::variable_name,value 可以定义任何你想使用是命名空间，下面是示例定义一个debugging 为true的常量在CONFIG命名空间。 -define=CONFIG::debugging,true 可以定义多个常量在同一个命令行里，用多个define隔开，例如： mxmlc -define=CONFIG::debugging,true -define=CONFIG::release,false MyApp.mxml 也可以在flex-config.xml 文件里定义这些常量，而不必在命令行里定义，你可以这样写： &#60;compiler&#62; &#60;define&#62; &#60;name&#62;CONFIG::debugging&#60;/name&#62; &#60;value&#62;true&#60;/value&#62; &#60;/define&#62; &#60;define&#62; &#60;name&#62;CONFIG::release&#60;/name&#62; &#60;value&#62;false&#60;/value&#62; &#60;/define&#62; &#60;/compiler&#62; 在Flex Ant里 可以设置这些常量作为元素定义，类似下面的示例： &#60;mxmlc ... &#62; &#60;define name=&#34;CONFIG::debugging&#34; value=&#34;true&#34;/&#62; &#60;define name=&#34;CONFIG::release&#34; value=&#34;false&#34;/&#62; &#60;/mxmlc&#62; 使用内置常量 你可以内联ActionScript常量，以一个Boolean常量为条件编译顶级函数，类，变量定义，在C/C++里通常使用#IFDEF 预处理命名。不能使用Boolean常量来条件编译metadata 或 import 语句。 [...]<p><a href="http://www.lite3.cn/blog/?p=404">AS3 条件编译</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=404</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>博客WordPress 修改</title>
		<link>http://www.lite3.cn/blog/?p=377</link>
		<comments>http://www.lite3.cn/blog/?p=377#comments</comments>
		<pubDate>Sat, 05 Sep 2009 04:35:35 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=377</guid>
		<description><![CDATA[取消自动保存功能: 分别在wordpress\wp-admin目录里 查找 page.php, page-new.php, post.php, post-new.php这4个文件, 在里面搜索 autosave 相关的语句,都注释掉. 添加评论算术验证码: 修改 wordpress\wp-comments-post.php文件, 查找 if &#40; '' == $comment_content &#41; 在上面代码前面添加下面代码 //Fufu_checkcode if &#40; !$user-&#62;ID &#41; &#123; $aaa = trim&#40;$_POST&#91;aaa&#93;&#41;; $bbb = trim&#40;$_POST&#91;bbb&#93;&#41;; $subab = trim&#40;$_POST&#91;subab&#93;&#41;; if&#40;&#40;&#40;$aaa+$bbb&#41;!=$subab&#41;&#124;&#124; empty&#40;$subab&#41;&#41;&#123; wp_die&#40; __&#40;'Error: Please enter the correct results of the math problems.'&#41; &#41;; &#125; &#125; //Fufu_end 更换表情: wordpress\wp-includes\images\smilies目录里的表情都换了新的 [...]<p><a href="http://www.lite3.cn/blog/?p=377">博客WordPress 修改</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=377</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>博客inove 主题修改</title>
		<link>http://www.lite3.cn/blog/?p=375</link>
		<comments>http://www.lite3.cn/blog/?p=375#comments</comments>
		<pubDate>Sat, 05 Sep 2009 04:00:23 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[inove]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=375</guid>
		<description><![CDATA[添加评论算术验证码: 修改inove/comments.php文件: &#60;input name=&#34;submit&#34; type=&#34;submit&#34; id=&#34;submit&#34; class=&#34;button&#34; tabindex=&#34;5&#34; value=&#34;&#60;?php _e&#40;'Submit Comment', 'inove'&#41;; ?&#62;&#34; /&#62; 在上面代码之前添加下面的代码 &#60;?php $aaa=rand&#40;0,5&#41;; $bbb=rand&#40;3,9&#41;; ?&#62;&#60;?php echo $aaa; ?&#62;+&#60;?php echo $bbb; ?&#62;= &#60;input type=&#34;text&#34; name=&#34;subab&#34; id=&#34;subab&#34; class=&#34;textfield&#34; size=&#34;2&#34; tabindex=&#34;5&#34; style=&#34;width:20px&#34; /&#62; &#60;?php if &#40;$req&#41; _e&#40;'(required)', 'inove'&#41;; ?&#62; &#60;input name=&#34;aaa&#34; value=&#34;&#60;?php echo $aaa; ?&#62;&#34; type=&#34;hidden&#34; /&#62; &#60;input name=&#34;bbb&#34; value=&#34;&#60;?php echo $bbb; ?&#62;&#34; type=&#34;hidden&#34; [...]<p><a href="http://www.lite3.cn/blog/?p=375">博客inove 主题修改</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=375</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 防止垃圾评论算术验证码</title>
		<link>http://www.lite3.cn/blog/?p=369</link>
		<comments>http://www.lite3.cn/blog/?p=369#comments</comments>
		<pubDate>Tue, 01 Sep 2009 13:10:34 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[博客相关]]></category>
		<category><![CDATA[垃圾评论]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=369</guid>
		<description><![CDATA[Blog防止垃圾评论一直是个头痛的问题，以前我用Bo-Blog的时候整天N多垃圾评论，带N多连接，后来把评论需要审核后显示，但这样不能解决根本问题，每天后台删除垃圾评论就要花费不少时间，近日Blog重开换成WordPress后也要考虑这个问题WordPress有自带一个 Akismet插件，能过滤部份垃圾评论但效果不理想，然后试了好几个插件都也不太理想，在Google搜索了老半天，后面听说用算术验证方式来做为验证码效果很不错，并介绍了款插件：Math Comment Spam Protection，试用了效果还可以，但后面又搜索到老二的博客上有更简单的方法可以实现这个功能（本人不喜欢装太多插件，理论上插件装太多会影响速度，还有可能造成一些不兼容的问题）。于是把 Math Comment Spam Protection 插件删除后按老二的博客所提到的方法进行了改造，并做了稍稍修改，使其能通过W3C验证。 方法如下： 修改 wp-comments-post.php ： 找到下面这行代码: if &#40; '' == $comment_content &#41; 在这行上面添加: //Fufu_checkcode if &#40; !$user-&#62;ID &#41; &#123; $aaa = trim&#40;$_POST&#91;aaa&#93;&#41;; $bbb = trim&#40;$_POST&#91;bbb&#93;&#41;; $subab = trim&#40;$_POST&#91;subab&#93;&#41;; if&#40;&#40;&#40;$aaa+$bbb&#41;!=$subab&#41;&#124;&#124; empty&#40;$subab&#41;&#41;&#123; wp_die&#40; __&#40;'Error: Please enter the correct results of the math problems.'&#41; &#41;; &#125; &#125; //Fufu_end 然后修改当前主题目录下的 [...]<p><a href="http://www.lite3.cn/blog/?p=369">WordPress 防止垃圾评论算术验证码</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=369</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>NativeMenu ContextMenuEvent</title>
		<link>http://www.lite3.cn/blog/?p=362</link>
		<comments>http://www.lite3.cn/blog/?p=362#comments</comments>
		<pubDate>Tue, 18 Aug 2009 12:03:26 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ContextMenuEvent]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[NativeMenu]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=362</guid>
		<description><![CDATA[今天群里朋友问, A B C D多个显示对象有同一个NativeMenu菜单, 怎么知道是哪个显示对象弹出的菜单? 首先想到的是NativeMenu有Event.DISPLAYING事件,可是具体是哪个显示对象就不好弄了, 然后想,如果只是相同的菜单显示,而用不同的NativeMenu可以用闭包函数实现,O(∩_∩)O~ 可是那位朋友说用闭包不适合的,o(╯□╰)o 又有朋友说用ContextMenuEvent.MENU_SELECT试试, 我想NativeMenu没有ContextMenuEvent事件的,怎么能用呢 先试下再说了, 没想到果然ok的, 郁闷了,API上说NativeMenu没有ContextMenuEvent事件的啊, 莫非我的API有误 , describeType 看下, 晕倒,也没ContextMenuEvent事件的 然后测试NativeWidow.menu 不会触发ContextMenuEvent事件, 然后猜想,可能InteractiveObject的contextMenu会自动添加ContextMenuEvent.MENU_SELET事件 结论:InteractiveObject的contextMenu会自动添加ContextMenuEvent.MENU_SELET事件,而不管是不是ContextMenu 下面是测试代码 &#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62; &#60;mx:WindowedApplication xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34; layout=&#34;absolute&#34; creationComplete=&#34;init()&#34; width=&#34;600&#34; height=&#34;300&#34;&#62; &#160; &#60;mx:Script&#62; &#60;![CDATA[ import flash.utils.describeType; private function init():void { // NativeMenu var menu:NativeMenu = new NativeMenu(); var menuItem:NativeMenuItem = new NativeMenuItem(&#34;lite3.cn&#34;); menu.addItem(menuItem); [...]<p><a href="http://www.lite3.cn/blog/?p=362">NativeMenu ContextMenuEvent</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=362</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>事件冒泡 目标阶段 捕获阶段 冒泡阶段 eventPhase</title>
		<link>http://www.lite3.cn/blog/?p=357</link>
		<comments>http://www.lite3.cn/blog/?p=357#comments</comments>
		<pubDate>Mon, 17 Aug 2009 09:24:14 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[eventPhase]]></category>
		<category><![CDATA[事件]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=357</guid>
		<description><![CDATA[上面显示了事件的三个阶段, 不过有些事件只有目标阶段, 比如TimerEvent 更多可以看帮助API的 下面做个flash演示, 请点下面flash里蓝色区域 恭喜您未安装flashplayer或版本过低！请点下面的链接到官网安装最新版的flashplayer。 swfobject.embedSWF("http://www.lite3.cn/assets/swf/eventPhaseTest.swf", "eventPhaseTest","600","300","9.0.0","http://www.lite3.cn/assets/swf/expressInstall.swf"); package cn.lite3.eventPhaseTest &#123; import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flash.events.Event; import flash.events.MouseEvent; import flash.text.TextField; &#160; /** * 事件的三个阶段测试 * * www.lite3.cn * lite3@qq.com * @author lite3 */ &#91;SWF&#40;width=600, height=300, backgroundColor=0xC7EDCC&#41;&#93; public class EventPhaseTest extends Sprite &#123; private var child:Sprite; private var container:Sprite; private var txt:TextField; [...]<p><a href="http://www.lite3.cn/blog/?p=357">事件冒泡 目标阶段 捕获阶段 冒泡阶段 eventPhase</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=357</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>TextField.restrict 文本输入限制</title>
		<link>http://www.lite3.cn/blog/?p=352</link>
		<comments>http://www.lite3.cn/blog/?p=352#comments</comments>
		<pubDate>Sun, 16 Aug 2009 17:01:38 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[restrict]]></category>
		<category><![CDATA[TextField]]></category>
		<category><![CDATA[限制输入]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=352</guid>
		<description><![CDATA[重新添加了swf演示. TextField.restrict 设置输入文本允许键盘输入的字符.默认null,可以输入任何字符. 有 3 个转意字符 ,分别为 - 短横线 连接字符, 表示从一个字符到另一个字符, 例如 "0-9" 表示从0 到 9 ,这10个字符都可输入. ^ 尖号 表示不允许输入的字符, ^ 允许出现多次, 第一个字符为^,表示先允许所有字符,再去除^之后的字符 单数后表示不可输入的字符,双数后表示从不可输入里去除的字符 \ 反斜杠 用于表示转义字符的本身 例如 "\-" 表示 - 短横线本身,当使用\u0001 这样的u转义序列时 不能出现\u0000 注意:在编码时,要把"\-"写成 \\- ,因为\\本身会转义成"\" 解压密码:www.lite3.cn 示例源码☞ TextField.restrict 文本输入限制 来源: Lite3&#039;s Blog 可能你还喜欢这些:2010年08月8日 -- Compile your AS3 projects with Ant + Flex SDK [...]<p><a href="http://www.lite3.cn/blog/?p=352">TextField.restrict 文本输入限制</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=352</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>获取MovieClip跳帧后的子元件</title>
		<link>http://www.lite3.cn/blog/?p=351</link>
		<comments>http://www.lite3.cn/blog/?p=351#comments</comments>
		<pubDate>Thu, 13 Aug 2009 12:38:56 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[MovieClip]]></category>
		<category><![CDATA[获取元件实例]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=351</guid>
		<description><![CDATA[如果一个MovieClip goto到非当前帧,那么直接获取在那一桢的非Shape显示对象是获取不到的, 但是currentFrame会立即跟进到 指定帧, 但指定帧还未渲染完成, 所以非Shape获取不到的 Shape元件简单很快就渲染完成了, SimpleButton, MovieClip 却需要更多的时间 废话不多说了,上代码, 注释比较详细 package &#123; import flash.display.DisplayObject; import flash.display.DisplayObjectContainer; import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; &#160; /** * ... * @author lite3 */ public class MCgetChildTest extends Sprite &#123; private const url:String = &#34;http://www.lite3.cn/assets/swf/mc_getchild_test.swf&#34;; private var loader:Loader = new Loader&#40;&#41;; public function [...]<p><a href="http://www.lite3.cn/blog/?p=351">获取MovieClip跳帧后的子元件</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=351</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash导出自定义类元件供flex调用</title>
		<link>http://www.lite3.cn/blog/?p=349</link>
		<comments>http://www.lite3.cn/blog/?p=349#comments</comments>
		<pubDate>Tue, 11 Aug 2009 07:21:16 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[UIMovieClip]]></category>
		<category><![CDATA[自定义类]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=349</guid>
		<description><![CDATA[首先Flash IDE 要安装 FlexComponentKit 扩展(没找到官方下载地址,所有传了以前下的CS3版本的) 下面开始讲应用. 先准备好自定义类, 然后将这个类改个名字作为基类,比如我用的cn.lite3.MyUIMovieClip,就用cn.lite3.MyUIMovieClipBase,源码后面下载.然后准备好要用的原件我的是MyUIMovieClip. 下面讲操作方法O(∩_∩)O Ctrl + L 后打开库面板,选中做好的原件MyUIMovieClip,选择[命令]菜单-&#62;Convert Symbol to Flex Component. 打开MyUIMovieClip连接框的, 类: cn.lite3.MyUIMovieClip 基类: cn.lite3.MyUIMovieClipBase 类:最终给flex用的完全限定类名,这个类现在还不存在,是flash自动生成的,如果有定义了,就会报错 基类:刚写的自定义类,所有要写的东西都在这个类里,自定义的基类是mx.flash.UIMovieClip,这里可以继承多层的 比如说A extends UIMovieClip, B extends A, 这样也ok的 点确定ok了 第一次会出现" 无法在类路径中找到对此类的定义,因此将在导出时自动在swf文件中生成相应的定义" 不用管,直接确定. Ctrl+Enter ,swc将在fla同目录里出现 把这个swc放到flex工程的lib目录里,flex自动加载swc 在flex里写好代码, 点debug, 输出正确 this is MyUIMovieClip::MyUIMovieClip! this is MyUIMovieClip::test! 主要源代码: MyUIMovieClipBase package cn.lite3 &#123; import mx.flash.UIMovieClip; &#160; [...]<p><a href="http://www.lite3.cn/blog/?p=349">flash导出自定义类元件供flex调用</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=349</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql-administrator的安装与使用（图文）</title>
		<link>http://www.lite3.cn/blog/?p=343</link>
		<comments>http://www.lite3.cn/blog/?p=343#comments</comments>
		<pubDate>Sat, 08 Aug 2009 02:43:54 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[administrator]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[使用]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=343</guid>
		<description><![CDATA[转自:http://article.phpfans.net/article/mysql/z1171770261_14361.html 准备工作 在D盘建立一个mysql-software的目录，把刚才下载的 mysql-administrator-1.0.19-win-noinstall.zip 复制到这个子目录中，解压，得到一个 MySQL Administrator 1.0 的目录。 同样如此操作 mysql-query-browser-1.1.5-win-noinstall.zip，得到一个 MySQL Query Browser 1.1 的目录。 备注:我用的安装文件标准模式安装的 启动服务 双击D:mysql-softwareMySQL Administrator 1.0 目录下的 MySQLSystemTrayMonitor.exe，这时会在任务栏右侧出现一个图标。点击“Start Instance”,运行MySQL。 然后双击 D:mysql-softwareMySQL Administrator 1.0 目录中的 MySQLAdministrator.exe，或者直接点击上面右键菜单中的“MySQL Administrator ”： 创建一个连接名，可以随便填，这里是“mxj”，用户名：root，密码空着。这是因为mysql默认有一个没有密码的root帐号。点击“OK”，出现管理窗口： 这没什么好说的，英文也很简单。只谈谈上面勾选的两项。 更改密码 好了，我的root帐号的密码设置为：javamxj 最后，点击“Apply Change”。 初始的数据库 上图可以看到，初始有两个数据库, mysql库中含有各种配置信息，不要在这个库中进行表操作。 test库初始是空的。 另外，建立表时，不要和mysql库中的表名取名相同，以免冲突。 数据创建与查询（兼谈谈字符编码） 现在来到查询浏览器，还是右击右下角“MySQL System Tray Monitor”图标，从中选择“MySQL Query Browser”，因为已经更改过root的密码，所以要填入新密码 进入主界面，右击test数据库，创建一个新表。 如下简单创建一个表 切换到“Table Options”： 如果了解数据库的话，这些应该是很熟悉的，不多说了。注意字符设置默认是“Latin1”（保存改变，再次切换到这一栏，就能看到了）。 [...]<p><a href="http://www.lite3.cn/blog/?p=343">mysql-administrator的安装与使用（图文）</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=343</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL数据库安装图解</title>
		<link>http://www.lite3.cn/blog/?p=336</link>
		<comments>http://www.lite3.cn/blog/?p=336#comments</comments>
		<pubDate>Fri, 07 Aug 2009 17:12:06 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[数据库]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[图解]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=336</guid>
		<description><![CDATA[转自:http://www.hx008.cn/Article/class7/Database/200803/1384.shtml 下面的是MySQL安装的图解，用的可执行文件安装的，详细说明了一下！ 打开下载的mysql安装文件mysql-5.0.27-win32.zip，双击解压缩，运行“setup.exe”，出现如下界面 mysql安装向导启动，按“Next”继续 选择安装类型，有“Typical（默认）”、“Complete（完全）”、“Custom（用户自定义）”三个选项，我们选择“Custom”，有更多的选项，也方便熟悉安装过程 在“Developer Components（开发者部分）”上左键单击，选择“This feature, and all subfeatures, will be installed on local hard drive.”，即“此部分，及下属子部分内容，全部安装在本地硬盘上”。在上面的“MySQL Server（mysql服务器）”、“Client Programs（mysql客户端程序）”、“Documentation（文档）”也如此操作，以保证安装所有文件。点选“Change...”，手动指定安装目录。 填上安装目录，我的是“F:\Server\MySQL\MySQL Server 5.0”，也建议不要放在与操作系统同一分区，这样可以防止系统备份还原的时候，数据被清空。按“OK”继续。 返回刚才的界面，按“Next”继续 确认一下先前的设置，如果有误，按“Back”返回重做。按“Install”开始安装。 正在安装中，请稍候，直到出现下面的界面 这里是询问你是否要注册一个mysql.com的账号，或是使用已有的账号登陆mysql.com，一般不需要了，点选“Skip Sign-Up”，按“Next”略过此步骤。 现在软件安装完成了，出现上面的界面，这里有一个很好的功能，mysql配置向导，不用向以前一样，自己手动乱七八糟的配置my.ini了，将 “Configure the Mysql Server now”前面的勾打上，点“Finish”结束软件的安装并启动mysql配置向导。 mysql配置向导启动界面，按“Next”继续 选择配置方式，“Detailed Configuration（手动精确配置）”、“Standard Configuration（标准配置）”，我们选择“Detailed Configuration”，方便熟悉配置过程。 选择服务器类型，“Developer Machine（开发测试类，mysql占用很少资源）”、“Server Machine（服务器类型，mysql占用较多资源）”、“Dedicated MySQL Server Machine（专门的数据库服务器，mysql占用所有可用资源）”，大家根据自己的类型选择了，一般选“Server Machine”，不会太少，也不会占满。 选择mysql数据库的大致用途，“Multifunctional Database（通用多功能型，好）”、“Transactional Database Only（服务器类型，专注于事务处理，一般）”、“Non-Transactional Database Only（非事务处理型，较简单，主要做一些监控、记数用，对MyISAM数据类型的支持仅限于non-transactional），随自己的用途而选择了，我这里选择“Transactional Database Only”，按“Next”继续。 对InnoDB [...]<p><a href="http://www.lite3.cn/blog/?p=336">MySQL数据库安装图解</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=336</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Vector.unshift bug已修复</title>
		<link>http://www.lite3.cn/blog/?p=329</link>
		<comments>http://www.lite3.cn/blog/?p=329#comments</comments>
		<pubDate>Thu, 06 Aug 2009 16:15:38 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[unshift]]></category>
		<category><![CDATA[Vector]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=329</guid>
		<description><![CDATA[package &#123; import flash.display.Sprite; import flash.system.Capabilities; &#160; /** * www.lite3.cn * lite3@qq.com * @author lite3 */ public class VectorTest extends Sprite &#123; &#160; private var list:Vector.&#60;MyClass&#62; = new Vector.&#60;MyClass&#62;&#40;&#41;; &#160; public function VectorTest&#40;&#41; &#123; trace&#40;Capabilities.version&#41;; var n:int = 3; while &#40;n--&#41; &#123; //list.length++; list.unshift&#40;new MyClass&#40;&#41;&#41;; trace&#40;list&#41;; &#125; &#125; &#160; &#125; &#160; &#125; class MyClass&#123;&#125; 输出: [...]<p><a href="http://www.lite3.cn/blog/?p=329">Vector.unshift bug已修复</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=329</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>蚁巢乐园 onlyant.com 搜狗拼音皮肤</title>
		<link>http://www.lite3.cn/blog/?p=324</link>
		<comments>http://www.lite3.cn/blog/?p=324#comments</comments>
		<pubDate>Thu, 06 Aug 2009 04:34:20 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[onlyant]]></category>
		<category><![CDATA[皮肤]]></category>
		<category><![CDATA[蚁巢乐园]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=324</guid>
		<description><![CDATA[蚁巢乐园官方网站 www.onlyant.com 蚁巢乐园搜狗拼音皮肤下载: 本站下载 搜狗下载地址:http://pinyin.sogou.com/skins/search.php?word=%D2%CF%B3%B2 蚁巢乐园 onlyant.com 搜狗拼音皮肤 来源: Lite3&#039;s Blog 随机文章2009年06月6日 -- 纯AS打造酷炫鼠标效果 (3)2009年08月18日 -- NativeMenu ContextMenuEvent (1)2009年07月29日 -- dispatchEvent (2)2009年06月22日 -- getter setter 用法 (0)2009年08月13日 -- 获取MovieClip跳帧后的子元件 (0)2009年08月7日 -- Vector.unshift bug已修复 (0)2010年08月7日 -- 博客更新 (0)2009年10月30日 -- JAR运行出现ClassNotFoundException解决办法 (1)2009年10月30日 -- AS 调用外部嵌入字体 (2)2010年03月28日 -- throw error 异常 (2)<p><a href="http://www.lite3.cn/blog/?p=324">蚁巢乐园 onlyant.com 搜狗拼音皮肤</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=324</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Array Vector 性能测试</title>
		<link>http://www.lite3.cn/blog/?p=316</link>
		<comments>http://www.lite3.cn/blog/?p=316#comments</comments>
		<pubDate>Thu, 06 Aug 2009 02:30:23 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[AS]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[Vector]]></category>
		<category><![CDATA[对象池]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=316</guid>
		<description><![CDATA[想做个对象池,以降低CPU销毁, 以前都是用Array 做的, 帮助说flashplayer10的Vector速度要比Array的速度快的多今天特来测试下 不过测试结果令我大失所望 push :  Vector慢,   Array 快  (可以忽略) pop :     Vector快,   Array 慢 (可以忽略) 这样的结果让我对Vector的性能产生了怀疑,又测试了下Vector的的存取速度 读取:  Vector快,   Array 慢  (可以忽略) 存储:  Vector慢,   Array 快 (可以忽略) 看来Vector在对Array的性能较量中并不占优势, 只是Vector是单一元素类型的数组,拥有Array 所没有的类型检查, 结论: 做对象池还是用Vector吧, 不管性能了, 下面是测试代码 package &#123; import flash.display.Sprite; import flash.utils.getTimer; &#160; /** * Array Vector 访问速度测试 * * www.lite3.cn * lite3@qq.com * @author lite3 [...]<p><a href="http://www.lite3.cn/blog/?p=316">Array Vector 性能测试</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=316</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASDoc tags  文档注释标签</title>
		<link>http://www.lite3.cn/blog/?p=308</link>
		<comments>http://www.lite3.cn/blog/?p=308#comments</comments>
		<pubDate>Fri, 31 Jul 2009 08:14:59 +0000</pubDate>
		<dc:creator>lite3</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[ASDoc]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://www.lite3.cn/?p=308</guid>
		<description><![CDATA[转至Adobe:http://livedocs.adobe.com/flex/3/html/index.html?content=asdoc_9.html ASDoc tag Description Example @copy reference Copies an ASDoc comment from the referenced location. The main description, @param, and @return content is copied; other tags are not copied. You typically use the @copy tag to copy information from a source class or interface not in the inheritance list of the destination class. If the [...]<p><a href="http://www.lite3.cn/blog/?p=308">ASDoc tags  文档注释标签</a> 来源: <a href="http://www.lite3.cn/blog">Lite3&#039;s Blog</a></p>
]]></description>
		<wfw:commentRss>http://www.lite3.cn/blog/?feed=rss2&amp;p=308</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
