<?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>Witheringtree &#187; Flash</title>
	<atom:link href="http://www.witheringtree.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.witheringtree.com</link>
	<description>If a tree falls in the forest and no one is around to hear it fall… yeah, it still makes a sound.</description>
	<lastBuildDate>Mon, 23 Jan 2012 02:07:39 +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>Flex Explorers</title>
		<link>http://www.witheringtree.com/2009/05/flex-explorers/</link>
		<comments>http://www.witheringtree.com/2009/05/flex-explorers/#comments</comments>
		<pubDate>Wed, 06 May 2009 06:04:10 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=141</guid>
		<description><![CDATA[I&#8217;ve always been a big fan of the Flex Style Explorer. I use it almost on a daily basic. But I&#8217;ve now run across more explorers. The first is the Flex Filter Explorer. I think the biggest issue I have with this one is it only shows the MXML code and not the Actionscript code. &#8230; <a href="http://www.witheringtree.com/2009/05/flex-explorers/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been a big fan of the <a href="http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html" target="_blank">Flex Style Explorer</a>. I use it almost on a daily basic. But I&#8217;ve now run across more explorers. The first is the <a href="http://www.merhl.com/flex2_samples/filterExplorer/" target="_blank">Flex Filter Explorer</a>. I think the biggest issue I have with this one is it only shows the MXML code and not the Actionscript code. The next and final explorer is the <a href="http://www.flexibleexperiments.com/Flex/PrimitiveExplorer/Flex2PrimitiveExplorer.html" target="_blank">Flex Primitive Explorer</a>. This one does primitive shapes using the Graphics class.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/flex-explorers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TweenMaxVars</title>
		<link>http://www.witheringtree.com/2009/05/tweenmaxvars/</link>
		<comments>http://www.witheringtree.com/2009/05/tweenmaxvars/#comments</comments>
		<pubDate>Wed, 06 May 2009 05:59:02 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=213</guid>
		<description><![CDATA[I just realized TweenMax has been updated. Sort of anyway. First of all, if you haven&#8217;t heard of TweenMax, go read about it. It&#8217;s an amazing Actionscript library that allows you to tween things in Flash or Flex. Big deal, Adobe has classes like that build in. Wrong! This is a hell of a lot &#8230; <a href="http://www.witheringtree.com/2009/05/tweenmaxvars/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just realized <a href="http://blog.greensock.com/tweenvars/" target="_blank">TweenMax</a> has been updated. Sort of anyway. First of all, if you haven&#8217;t heard of TweenMax, <a href="http://blog.greensock.com/tweening-family-comparison/" target="_blank">go read about it</a>. It&#8217;s an amazing Actionscript library that allows you to tween things in Flash or Flex. Big deal, Adobe has classes like that build in. Wrong! This is a hell of a lot faster. Plus as an added bonus it does bezier tweening which is amazing. Back on track. TweenMax now has an optional utilities class which would allow for code hinting and strict data typing. Like I said, it is an optional class.</p>
<p>Here is an example of the original way:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>TweenLite<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*;</span>
TweenLite<span style="color: #000066; font-weight: bold;">.</span>to<span style="color: #000000;">&#40;</span>my_mc<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#123;</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">300</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">,</span> ease<span style="color: #000066; font-weight: bold;">:</span>Elastic<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">,</span> onComplete<span style="color: #000066; font-weight: bold;">:</span>myFunction<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>And now the new/optional way to do it:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>TweenLite<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>tween<span style="color: #000066; font-weight: bold;">.</span>TweenLiteVars<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> gs<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> v<span style="color: #000066; font-weight: bold;">:</span>TweenLiteVars = <span style="color: #0033ff; font-weight: bold;">new</span> TweenLiteVars<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	v<span style="color: #000066; font-weight: bold;">.</span>addProps<span style="color: #000000;">&#40;</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">300</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	v<span style="color: #000066; font-weight: bold;">.</span>ease = Elastic<span style="color: #000066; font-weight: bold;">.</span>easeOut<span style="color: #000066; font-weight: bold;">;</span>
	v<span style="color: #000066; font-weight: bold;">.</span>onComplete = myFunction<span style="color: #000066; font-weight: bold;">;</span>
TweenLite<span style="color: #000066; font-weight: bold;">.</span>to<span style="color: #000000;">&#40;</span>my_mc<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">,</span> v<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/tweenmaxvars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>everythingflexairlib.swc</title>
		<link>http://www.witheringtree.com/2009/05/everythingflexairlib-swc/</link>
		<comments>http://www.witheringtree.com/2009/05/everythingflexairlib-swc/#comments</comments>
		<pubDate>Wed, 06 May 2009 05:48:56 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=155</guid>
		<description><![CDATA[This is probably old news for everyone. EverythingFlex has a great, free SWC library for AIR called everythingflexairlib.swc. It includes ContextWindow, AlertWindow, NativeAlertWindow, SuperWindow, ConnectionManager, and UpdateManager classes. I won&#8217;t go into explaining what each one does. You really have to see for yourself. They are amazing. There is even source code for each one &#8230; <a href="http://www.witheringtree.com/2009/05/everythingflexairlib-swc/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is probably old news for everyone. <a href="http://blog.everythingflex.com/" target="_blank">EverythingFlex</a> has a great, free SWC library for AIR called <a href="http://blog.everythingflex.com/air-central/everythingflexair1swc/" target="_blank">everythingflexairlib.swc</a>. It includes ContextWindow, AlertWindow, NativeAlertWindow, SuperWindow, ConnectionManager, and UpdateManager classes. I won&#8217;t go into explaining what each one does. You really have to see for yourself. They are amazing. There is even source code for each one to get you started.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/everythingflexairlib-swc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Easing Function Explorer v1.0.0</title>
		<link>http://www.witheringtree.com/2009/05/custom-easing-function-explorer-v1-0-0/</link>
		<comments>http://www.witheringtree.com/2009/05/custom-easing-function-explorer-v1-0-0/#comments</comments>
		<pubDate>Wed, 06 May 2009 05:48:40 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=157</guid>
		<description><![CDATA[A couple weeks ago I was looking for a quick customization to the default tweens in Flex. Basically I didn&#8217;t want the Bounce to bounce as much as it was. I don&#8217;t know math well enough to make it do what I wanted so I just went with second best. Yesterday I was surfing around &#8230; <a href="http://www.witheringtree.com/2009/05/custom-easing-function-explorer-v1-0-0/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple weeks ago I was looking for a quick customization to the default tweens in Flex. Basically I didn&#8217;t want the Bounce to bounce as much as it was. I don&#8217;t know math well enough to make it do what I wanted so I just went with second best. Yesterday I was surfing around and I found exactly what I needed. It&#8217;s called <a href="http://www.madeinflex.com/img/entries/2007/05/customeasingexplorer.html" target="_blank">Custom Easing Function Explorer</a>. Which of course linked off to the <a href="http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&amp;file=behaviors_068_28.html#218121" target="_blank">Adobe docs</a> on the same subject. Funny how I couldn&#8217;t find that when I actually needed it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/custom-easing-function-explorer-v1-0-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TweenMax</title>
		<link>http://www.witheringtree.com/2009/05/tweenmax/</link>
		<comments>http://www.witheringtree.com/2009/05/tweenmax/#comments</comments>
		<pubDate>Wed, 06 May 2009 05:46:46 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=163</guid>
		<description><![CDATA[I&#8217;ve always been a big fan of Tweener. Even when it was called MC Tween I thought it was one of the best tween managers for Flash. Yesterday I found something that might compete with Tweener. It&#8217;s called TweenMax. There are three version of TweenMax. TweenLite (3k) does the basic tweens. The same as Tweener &#8230; <a href="http://www.witheringtree.com/2009/05/tweenmax/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been a big fan of <a href="http://code.google.com/p/tweener/" target="_blank">Tweener</a>. Even when it was called MC Tween I thought it was one of the best tween managers for Flash. Yesterday I found something that might compete with Tweener. It&#8217;s called <a href="http://blog.greensock.com/tweenmaxas3/" target="_blank">TweenMax</a>. There are three version of TweenMax. TweenLite (3k) does the basic tweens. The same as Tweener really. TweenFilterLite (6k) does what TweenLite does, plus it tweens the filters like Blur, Glow, Bevel, ColorMatrix, and DropShadow and also tweens saturation, hue, brightness, contrast, threshold, and colorization. Then there is TweenMax (8k) which includes everything the other two do a few extra things. One of the best things about it is it can do <em>bezier</em> tweening! How cool is that! If you go to the <a href="http://blog.greensock.com/tweening-family-comparison/" target="_blank">Family Comparison</a> you can see the list of things each one has or doesn&#8217;t have and even see demos of them compared to other tween managers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/tweenmax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Undetermined Number of Arguments With &#8230;rest</title>
		<link>http://www.witheringtree.com/2009/05/undetermined-number-of-arguments-with-rest/</link>
		<comments>http://www.witheringtree.com/2009/05/undetermined-number-of-arguments-with-rest/#comments</comments>
		<pubDate>Tue, 05 May 2009 10:00:50 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=211</guid>
		<description><![CDATA[It&#8217;s amazing how many people still don&#8217;t know about &#8230;rest. On the other hand I think I have only played with it but never actually used it. Basically what &#8230;rest does it allows you to pass, or not pass, parameters to a function. &#8230;rest parameters are passed just like all variables but in the function &#8230; <a href="http://www.witheringtree.com/2009/05/undetermined-number-of-arguments-with-rest/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s amazing how many people still don&#8217;t know about &#8230;rest. On the other hand I think I have only played with it but never actually used it. Basically what &#8230;rest does it allows you to pass, or not pass, parameters to a function. &#8230;rest parameters are passed just like all variables but in the function it will be an Array. Here is an example:</p>
<p><code><br />
function myFunction(required:Number, ...optionalArgs):void<br />
{<br />
trace(required); // 1<br />
trace(optionalArgs); // [2, 3, 4]<br />
}<br />
myFunction(1, 2, 3, 4);<br />
</code></p>
<p>The same functionality can be achieved a couple other ways. This next example you set a default value for each variables you pass. But this isn&#8217;t an undetermined number of arguments.</p>
<p><code><br />
function myFunction(option1:Number=0, option2:Number=null):void<br />
{<br />
trace(option1); // 1<br />
trace(option2); // null<br />
}<br />
myFunction(1);<br />
</code></p>
<p>Another way is similar to the way jQuery does it plugins. I don&#8217;t have an example of it but you pass all of your variables that you want in an object to the function. You can have any number of items in the object. Inside the function you have default values in case the variables aren&#8217;t passed. Then the variables that were passed overwrite the default values.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/undetermined-number-of-arguments-with-rest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript Error Repository</title>
		<link>http://www.witheringtree.com/2009/05/actionscript-error-repository/</link>
		<comments>http://www.witheringtree.com/2009/05/actionscript-error-repository/#comments</comments>
		<pubDate>Tue, 05 May 2009 03:14:35 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=72</guid>
		<description><![CDATA[I found a great resource today called the ActionScript Error Repository. Let&#8217;s say you are working in Flash, Flex, or AIR and you get a fun error message: Error #2032: Stream Error. You can search for the error code and it will explain the cause and how to fix it. It will give an example &#8230; <a href="http://www.witheringtree.com/2009/05/actionscript-error-repository/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I found a great resource today called the <a href="http://www.actionscripterrors.com" target="_blank">ActionScript Error Repository</a>. Let&#8217;s say you are working in Flash, Flex, or AIR and you get a fun error message: <em>Error #2032: Stream Error</em>. You can search for the error code and it will explain the cause and how to fix it. It will give an example of bad that that will cause a similar error and it will also give you an example of good code that you can copy/paste.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2009/05/actionscript-error-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bitmap Smoothing</title>
		<link>http://www.witheringtree.com/2008/07/bitmap-smoothing/</link>
		<comments>http://www.witheringtree.com/2008/07/bitmap-smoothing/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 15:25:04 +0000</pubDate>
		<dc:creator>David Freerksen</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.witheringtree.com/?p=256</guid>
		<description><![CDATA[Let&#8217;s say you are loading in an image. The image is a little to big to fit in the area it is supposed to go in or maybe too small so you have to scale it up a little. The problem is, if you scale it, it will end up looking absolutely horrible. All is &#8230; <a href="http://www.witheringtree.com/2008/07/bitmap-smoothing/" title="Continue reading">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you are loading in an image. The image is a little to big to fit in the area it is supposed to go in or maybe too small so you have to scale it up a little. The problem is, if you scale it, it will end up looking absolutely horrible. All is not lost. Adobe has an article by Ben Longoria on creating a component called <a href="http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&amp;productId=2&amp;postId=4001">SmoothImage</a> which basically takes your image and once it is loaded in, it casts it as a bitmap in order to apply bitmap smoothing to it. Ok, granted, the article is a little dated. It was created April 6, 2007. It can be used as a basis for your own custom MXML component. Maybe you are the type of person that likes to use Actionscript components instead of MXML components. This basically does the same thing. Once the image is loaded in, it calls this function which casts it as a bitmap and applies smoothing.</p>
<p>[Updated July 28, 2008] <a href="http://userflex.wordpress.com/2008/06/19/image-smoothing/" target="_blank">Here</a> is an example of an Actionscript classes bases example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.witheringtree.com/2008/07/bitmap-smoothing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

