<?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>zedia flash blog &#187; setTint</title>
	<atom:link href="http://www.zedia.net/tag/settint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>My new friend setTint</title>
		<link>http://www.zedia.net/2007/my-new-friend-settint/</link>
		<comments>http://www.zedia.net/2007/my-new-friend-settint/#comments</comments>
		<pubDate>Fri, 26 Oct 2007 00:09:52 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[fl.motion.color]]></category>
		<category><![CDATA[interpolateColor]]></category>
		<category><![CDATA[setTint]]></category>

		<guid isPermaLink="false">http://www.zedia.net/2007/my-new-friend-settint/</guid>
		<description><![CDATA[I played around today with a method named setTint from the fl.motion.Color class. At first I was a bit confused because this method doesn&#8217;t return anything contrarily to the interpolateColor method which returns a color in hexadecimal. You have to use setTint in this way: 1 2 3 4 5 import fl.motion.Color; import flash.geom.ColorTransform; var [...]]]></description>
			<content:encoded><![CDATA[<p>I played around today with a method named setTint from the fl.motion.Color class. At first I was a bit confused because this method doesn&#8217;t return anything contrarily to the interpolateColor method which returns a color in hexadecimal. You have to use setTint in this way:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> fl.<span style="color: #006600;">motion</span>.<span style="color: #0066CC;">Color</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">ColorTransform</span>;
<span style="color: #000000; font-weight: bold;">var</span> ct:<span style="color: #0066CC;">Color</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Color</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
ct.<span style="color: #006600;">setTint</span><span style="color: #66cc66;">&#40;</span>0xFF0000, <span style="color: #cc66cc;">0.5</span><span style="color: #66cc66;">&#41;</span>;
mc.<span style="color: #006600;">transform</span>.<span style="color: #006600;">colorTransform</span> = ct;</pre></td></tr></table></div>

<p>With mc being the displayObject you want it applied on. setTint can be pretty useful for setting a tint on a bitmap and it can also be used with tweens in the same way I used the interpolateColor in a previous post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2007/my-new-friend-settint/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

