<?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"
	>
<channel>
	<title>Comments on: TweenFilterLite (AS2 Version) - Easily Tween Filters &#038; Image Effects</title>
	<atom:link href="http://blog.greensock.com/tweenfilterliteas2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.greensock.com/tweenfilterliteas2/</link>
	<description>ActionScript Enthusaist</description>
	<pubDate>Sun,  6 Jul 2008 19:41:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: jack</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-16308</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Fri, 04 Apr 2008 00:56:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-16308</guid>
		<description>heaversm, here's an easy way to match exactly what you created in the Flash CS3 (or Flash 8) authoring environment in terms of the ColorMatrixFilter. All you need to do is get the necessary values in the matrix array and pass it to the new version of TweenFilterLite (7.04). Here's some code that grabs those values, traces them to your output window (in case you want to copy/paste), clears the filter, and tweens it back into place after a 1 second delay:

import gs.*;
import flash.filters.*;

function getCurrentMatrix($mc:MovieClip):Array {
	var filters:Array = $mc.filters;
	for (var i:Number = 0; i &lt; filters.length; i++) {
		if (filters[i] instanceof ColorMatrixFilter) {
			return filters[i].matrix;
		}
	}
}

var curMatrix:Array = getCurrentMatrix(mc);
trace("TweenFilterLite.to(mc, 3, {colorMatrixFilter:{matrix:[" + curMatrix + "]}})");

mc.filters = []; //clears filters;
TweenFilterLite.to(mc, 3, {colorMatrixFilter:{matrix:curMatrix}, delay:1});</description>
		<content:encoded><![CDATA[<p>heaversm, here&#8217;s an easy way to match exactly what you created in the Flash CS3 (or Flash 8) authoring environment in terms of the ColorMatrixFilter. All you need to do is get the necessary values in the matrix array and pass it to the new version of TweenFilterLite (7.04). Here&#8217;s some code that grabs those values, traces them to your output window (in case you want to copy/paste), clears the filter, and tweens it back into place after a 1 second delay:</p>
<p>import gs.*;<br />
import flash.filters.*;</p>
<p>function getCurrentMatrix($mc:MovieClip):Array {<br />
	var filters:Array = $mc.filters;<br />
	for (var i:Number = 0; i < filters.length; i++) {<br />
		if (filters[i] instanceof ColorMatrixFilter) {<br />
			return filters[i].matrix;<br />
		}<br />
	}<br />
}</p>
<p>var curMatrix:Array = getCurrentMatrix(mc);<br />
trace(&#8221;TweenFilterLite.to(mc, 3, {colorMatrixFilter:{matrix:[" + curMatrix + "]}})&#8221;);</p>
<p>mc.filters = []; //clears filters;<br />
TweenFilterLite.to(mc, 3, {colorMatrixFilter:{matrix:curMatrix}, delay:1});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heaversm</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-16301</link>
		<dc:creator>heaversm</dc:creator>
		<pubDate>Thu, 03 Apr 2008 21:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-16301</guid>
		<description>Hey - very cool!  One question - is there an easy translation between the numbers you use for the color matrix and the numbers used in flash's CS3's built in filter tweener.  I have some tweens I want to make to a color, and I have their exact values in flash (example: HUE: -63, SATURATION: 70) - but this doesn't really translate over to Tweenfilter lite.  How best to approximate those values?  Nice work!</description>
		<content:encoded><![CDATA[<p>Hey - very cool!  One question - is there an easy translation between the numbers you use for the color matrix and the numbers used in flash&#8217;s CS3&#8217;s built in filter tweener.  I have some tweens I want to make to a color, and I have their exact values in flash (example: HUE: -63, SATURATION: 70) - but this doesn&#8217;t really translate over to Tweenfilter lite.  How best to approximate those values?  Nice work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sacha jerrems</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-13598</link>
		<dc:creator>sacha jerrems</dc:creator>
		<pubDate>Sun, 24 Feb 2008 09:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-13598</guid>
		<description>dude.
I've been tweening tings for years...I've been too complacent with the ol' lmc_tween.as because you could write two tweens on the one movieclip without the first overwriting the second which I found no other tweener did...I just noticed you're little snippet of code: overwrite:false in your tweener...You're a F*&#38;king legend!! I am a better deviner after visiting your website tonight.
Radical</description>
		<content:encoded><![CDATA[<p>dude.<br />
I&#8217;ve been tweening tings for years&#8230;I&#8217;ve been too complacent with the ol&#8217; lmc_tween.as because you could write two tweens on the one movieclip without the first overwriting the second which I found no other tweener did&#8230;I just noticed you&#8217;re little snippet of code: overwrite:false in your tweener&#8230;You&#8217;re a F*&amp;king legend!! I am a better deviner after visiting your website tonight.<br />
Radical</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-10702</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Wed, 23 Jan 2008 15:53:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-10702</guid>
		<description>Michiel, I have avoiding adding pause/resume functionality to TweenLite in order to keep file size way down, but TweenMax is now officially released and it includes that feature (and many more). Check it out at www.TweenMax.com

Also, it's very easy to do the frame tween you're talking about. As of version 6, frame tweening is built into TweenLite!</description>
		<content:encoded><![CDATA[<p>Michiel, I have avoiding adding pause/resume functionality to TweenLite in order to keep file size way down, but TweenMax is now officially released and it includes that feature (and many more). Check it out at <a href="http://www.TweenMax.com" rel="nofollow" onclick="javascript:urchinTracker ('/outbound/comment/www.TweenMax.com');">http://www.TweenMax.com</a></p>
<p>Also, it&#8217;s very easy to do the frame tween you&#8217;re talking about. As of version 6, frame tweening is built into TweenLite!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michiel</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-10701</link>
		<dc:creator>Michiel</dc:creator>
		<pubDate>Wed, 23 Jan 2008 15:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-10701</guid>
		<description>I can think of just two more major functions. One would be the ability to pause (all) tweens. This would be wildly useful in some cases. Right now I'm making a video banner which uses vector animations, but people are going to be pausing and playing the video.

Another possibility would be the ability to tween through a timeline animation. I once made an animation of a sunrise which used several motion tweens; the entire animation timeline was then tweened from start to end in a certain time, using a standard quadratic equation. It looked great, and works really well if the animation is long enough (to provide enough frames for low-movement parts of the equation).</description>
		<content:encoded><![CDATA[<p>I can think of just two more major functions. One would be the ability to pause (all) tweens. This would be wildly useful in some cases. Right now I&#8217;m making a video banner which uses vector animations, but people are going to be pausing and playing the video.</p>
<p>Another possibility would be the ability to tween through a timeline animation. I once made an animation of a sunrise which used several motion tweens; the entire animation timeline was then tweened from start to end in a certain time, using a standard quadratic equation. It looked great, and works really well if the animation is long enough (to provide enough frames for low-movement parts of the equation).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://blog.greensock.com/tweenfilterliteas2/#comment-10572</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Mon, 21 Jan 2008 13:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.greensock.com/?p=9#comment-10572</guid>
		<description>Alex, you should be able to do that without a problem - just remember that unless you set the "overwrite" property to false, TweenLite (and TweenFilterLite) will always overwrite existing tweens of the same object. So to move a MovieClip while adding a glow and removing a drop shadow, you could do something like:

TweenFilterLite.to(my_mc, 2, {glowFilter:{color:0xFF0000, strength:2, blurX:10, blurY:10}, _x:100, _y:300});
TweenFilterLite.to(my_mc, 2, {dropShadowFilter:{alpha:0}, overwrite:false});</description>
		<content:encoded><![CDATA[<p>Alex, you should be able to do that without a problem - just remember that unless you set the &#8220;overwrite&#8221; property to false, TweenLite (and TweenFilterLite) will always overwrite existing tweens of the same object. So to move a MovieClip while adding a glow and removing a drop shadow, you could do something like:</p>
<p>TweenFilterLite.to(my_mc, 2, {glowFilter:{color:0xFF0000, strength:2, blurX:10, blurY:10}, _x:100, _y:300});<br />
TweenFilterLite.to(my_mc, 2, {dropShadowFilter:{alpha:0}, overwrite:false});</p>
]]></content:encoded>
	</item>
</channel>
</rss>
