<?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>benwatts.ca &#187; filters</title>
	<atom:link href="http://benwatts.ca/tag/filters/feed/" rel="self" type="application/rss+xml" />
	<link>http://benwatts.ca</link>
	<description>Designer and Frontend Developer in Ottawa, Canada</description>
	<lastBuildDate>Fri, 22 Jul 2011 19:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Add Filters to Display Objects</title>
		<link>http://benwatts.ca/2008/add-filters-to-display-objects/</link>
		<comments>http://benwatts.ca/2008/add-filters-to-display-objects/#comments</comments>
		<pubDate>Mon, 19 May 2008 15:03:59 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[fx]]></category>

		<guid isPermaLink="false">http://seaturtle.rainiscold.ca/?p=46</guid>
		<description><![CDATA[Flash&#8217;s built-in filters (eg. blur/drop shadow) can be applied to display objects and bitmaps, though frankly it feels much more straightforward when you&#8217;re applying them to a display object instead of a bitmap. But I haven&#8217;t done anything with bitmaps yet &#8230; so &#8230; All the filters are part of the flash.filters.* class. // must [...]]]></description>
			<content:encoded><![CDATA[<p>Flash&#8217;s built-in filters (eg. blur/drop shadow) can be applied to display objects and bitmaps, though frankly it feels much more straightforward when you&#8217;re applying them to a display object instead of a bitmap. But I haven&#8217;t done anything with bitmaps yet &#8230; so &#8230;</p>
<p>All the filters are part of the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filters/package-detail.html">flash.filters.* class</a>.</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900; font-style: italic;">// must import above the class definition</span><br />
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.filters</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">DropShadowFilter</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #009900; font-style: italic;">// -- [..]</span><br />
<br />
<span style="color: #6699cc; font-weight: bold;">var</span> myClip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">MovieClip</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #6699cc; font-weight: bold;">var</span> shadowFilter<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">DropShadowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">DropShadowFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// takes a lot of arguments ...</span><br />
myClip<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>shadowFilter<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// filters is an instance variable from the DisplayObject class -- 'tis an Array</span><br />
<br />
<span style="color: #009900; font-style: italic;">// if this was a bitmap (as opposed to a DisplayObject) we'd need to do applyFilter() or something</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://benwatts.ca/2008/add-filters-to-display-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

