<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: TweenFilterLite (AS3 Version) &#8211; Easily Tween Filters &amp; Image Effects</title>
	<atom:link href="http://blog.greensock.com/tweenfilterliteas3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.greensock.com/tweenfilterliteas3/</link>
	<description>ActionScript Enthusaist</description>
	<lastBuildDate>Thu, 02 Jul 2009 21:29:43 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jay</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-23173</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 25 Sep 2008 23:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-23173</guid>
		<description>Thank you so much for sharing that, you are truly a hero of the flash dev world... I feel a donation will be imminent...</description>
		<content:encoded><![CDATA[<p>Thank you so much for sharing that, you are truly a hero of the flash dev world&#8230; I feel a donation will be imminent&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-17728</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Mon, 19 May 2008 14:31:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-17728</guid>
		<description>Cardigan, there isn&#039;t currently a built-in way to automatically kill a filter after tweening it, but I may add that feature in a future version. Right now, though, you can just use an onComplete function to kill your filter(s). To remove all filters from a DisplayObject, just set its filters property to an empty Array in your custom onComplete function, like:

my_mc.filters = [];

Or to kill a specific kind of filter, you could set up an onComplete function like:

function removeFilterType($object:DisplayObject, $filterType:BitmapFilter):void {
	var f:Array = $object.filters;
	var a:Array = []; //remaining filters
	for (var i:int = f.length - 1; i &gt; -1; i--) {
		if (!(f[i] is $filterType)) {
			a.push(f[i]);
		}
	}
	$object.filters = a;
}

and then in your tween, you&#039;d do something like:

TweenFilterLite.to(my_mc, 1, {blurFilter:{blurX:20}, onComplete:removeFilterType, onCompleteParams:[my_mc, BlurFilter]});

(don&#039;t forget to import the flash.filters.BlurFilter class)</description>
		<content:encoded><![CDATA[<p>Cardigan, there isn&#8217;t currently a built-in way to automatically kill a filter after tweening it, but I may add that feature in a future version. Right now, though, you can just use an onComplete function to kill your filter(s). To remove all filters from a DisplayObject, just set its filters property to an empty Array in your custom onComplete function, like:</p>
<p>my_mc.filters = [];</p>
<p>Or to kill a specific kind of filter, you could set up an onComplete function like:</p>
<p>function removeFilterType($object:DisplayObject, $filterType:BitmapFilter):void {<br />
	var f:Array = $object.filters;<br />
	var a:Array = []; //remaining filters<br />
	for (var i:int = f.length &#8211; 1; i > -1; i&#8211;) {<br />
		if (!(f[i] is $filterType)) {<br />
			a.push(f[i]);<br />
		}<br />
	}<br />
	$object.filters = a;<br />
}</p>
<p>and then in your tween, you&#8217;d do something like:</p>
<p>TweenFilterLite.to(my_mc, 1, {blurFilter:{blurX:20}, onComplete:removeFilterType, onCompleteParams:[my_mc, BlurFilter]});</p>
<p>(don&#8217;t forget to import the flash.filters.BlurFilter class)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cardigan</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-17726</link>
		<dc:creator>Cardigan</dc:creator>
		<pubDate>Mon, 19 May 2008 14:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-17726</guid>
		<description>Thanks very much for this tool. Is it possible to remove a filter applied with tweenFilterLite? </description>
		<content:encoded><![CDATA[<p>Thanks very much for this tool. Is it possible to remove a filter applied with tweenFilterLite?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brroy</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-17524</link>
		<dc:creator>brroy</dc:creator>
		<pubDate>Mon, 12 May 2008 15:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-17524</guid>
		<description>Iâ€™ve been looking for a solid animation package to accompany AS3 projects and I think Iâ€™ve finally found it. Kudos on your work!

helipross.com</description>
		<content:encoded><![CDATA[<p>Iâ€™ve been looking for a solid animation package to accompany AS3 projects and I think Iâ€™ve finally found it. Kudos on your work!</p>
<p>helipross.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erich</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-17422</link>
		<dc:creator>Erich</dc:creator>
		<pubDate>Thu, 08 May 2008 17:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-17422</guid>
		<description>Jack, thanks for creating these great classes. You&#039;ve saved me hours of time. If you&#039;re ever in Chicago, I owe you a beer.</description>
		<content:encoded><![CDATA[<p>Jack, thanks for creating these great classes. You&#8217;ve saved me hours of time. If you&#8217;re ever in Chicago, I owe you a beer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lauren</title>
		<link>http://blog.greensock.com/tweenfilterliteas3/comment-page-1/#comment-16878</link>
		<dc:creator>Lauren</dc:creator>
		<pubDate>Sun, 20 Apr 2008 20:31:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/tweenfilterliteas3/#comment-16878</guid>
		<description>Thanks for providing this! Fantastic tool.</description>
		<content:encoded><![CDATA[<p>Thanks for providing this! Fantastic tool.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
