<?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>ActionScript 3 Lover &#187; cacheasbitmap</title>
	<atom:link href="http://as3blog.com/tag/cacheasbitmap/feed/" rel="self" type="application/rss+xml" />
	<link>http://as3blog.com</link>
	<description>Focus on ActionScript 3</description>
	<lastBuildDate>Thu, 19 Nov 2009 04:51:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>什么时候该用cacheAsBitmap，什么时候不该用</title>
		<link>http://as3blog.com/as3/when-and-how-to-use-cacheasbitmap/</link>
		<comments>http://as3blog.com/as3/when-and-how-to-use-cacheasbitmap/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 07:25:07 +0000</pubDate>
		<dc:creator>Aw</dc:creator>
				<category><![CDATA[ActionScript3]]></category>
		<category><![CDATA[cacheasbitmap]]></category>

		<guid isPermaLink="false">http://as3blog.com/as3/when-and-how-to-use-cacheasbitmap/</guid>
		<description><![CDATA[根据官方的说明，结合我自己的经验，分享一下：
该用cacheAsBitmap的时候：

在一个复杂的矢量化背景图片上存在大量动画；
滚动文本区域；
基于窗口的应用（你经常会拖拽整块区域）
透明遮罩（必须强制使用，否则失效）

不应该用cacheAsBitmap的时候：

不要滥用，cacheAsBitamp十分消耗内存，一块250&#215;250像素的矩形进行cache之后可能占掉250kb的内存！
目标元素缩放的时候不要使用。
目标元素本身最好是静态的，或者不要经常发生翻转、缩放这样的动画
不要把矢量图和cache的位图一起混用。

]]></description>
			<content:encoded><![CDATA[<p>根据官方的说明，结合我自己的经验，分享一下：</p>
<p>该用cacheAsBitmap的时候：</p>
<ol>
<li>在一个复杂的矢量化背景图片上存在大量动画；</li>
<li>滚动文本区域；</li>
<li>基于窗口的应用（你经常会拖拽整块区域）</li>
<li>透明遮罩（必须强制使用，否则失效）</li>
</ol>
<p>不应该用cacheAsBitmap的时候：</p>
<ol>
<li>不要滥用，cacheAsBitamp十分消耗内存，一块250&#215;250像素的矩形进行cache之后可能占掉250kb的内存！</li>
<li>目标元素缩放的时候不要使用。</li>
<li>目标元素本身最好是静态的，或者不要经常发生翻转、缩放这样的动画</li>
<li>不要把矢量图和cache的位图一起混用。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://as3blog.com/as3/when-and-how-to-use-cacheasbitmap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

