<?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>homer gaines &#187; Flash</title>
	<atom:link href="http://www.homergaines.com/blog/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.homergaines.com/blog</link>
	<description>Freelance Web Designer &#38; Flash Developer</description>
	<lastBuildDate>Fri, 04 Jun 2010 16:39:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Apple &#8220;Bans&#8221; Use of Adobe Flash CS5 to Build iPhone Apps</title>
		<link>http://www.homergaines.com/blog/2010/04/apple-bans-use-of-adobe-flash-cs5-to-build-iphone-apps/</link>
		<comments>http://www.homergaines.com/blog/2010/04/apple-bans-use-of-adobe-flash-cs5-to-build-iphone-apps/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 07:20:05 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Articles of Intrest]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Skipping Rocks]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=601</guid>
		<description><![CDATA[&#8220;When the elephants fight, the grass suffers!&#8221; I  often say that when referencing political, self serving, chest pounding, pissing contests that get in the way of good ideas or people doing good work.  I, as were many others, was looking forward to the updates in adobe&#8217;s new CS5, especially the ability to develop an app [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;When the elephants fight, the grass suffers!&#8221;</p>
<p>I  often say that when referencing political, self serving, chest pounding, pissing contests that get in the way of good ideas or people doing good work.  I, as were many others, was looking forward to  the updates in adobe&#8217;s new CS5, especially the ability to develop an app  using flash and export it as an iPhone app. But after reading this,  it&#8217;s clear that myself and anyone else with those same ambitions will  have to focus our attention on other mobile platforms such as android.</p>
<p><a href="http://www.adobe.com/devnet/devices/demos/" target="_blank">http://www.adobe.com/devnet/devices/demos/</a></p>
<p>Not happy with Apple right now for such a schoolyard stunt days before  CS5 is launched this Monday.</p>
<p>Read more about it on  Mashable</p>
<p><a href="http://mashable.com/2010/04/08/apple-adobe-flash-compiler/" target="_blank">http://mashable.com/2010/04/08/apple-adobe-flash-compiler/</a></p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2010/04/apple-bans-use-of-adobe-flash-cs5-to-build-iphone-apps/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2010/04/apple-bans-use-of-adobe-flash-cs5-to-build-iphone-apps/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2010/04/apple-bans-use-of-adobe-flash-cs5-to-build-iphone-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing Variables to A Function in ActionScript 3</title>
		<link>http://www.homergaines.com/blog/2008/11/passing-varibles-to-a-function-in-as3/</link>
		<comments>http://www.homergaines.com/blog/2008/11/passing-varibles-to-a-function-in-as3/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 21:36:53 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[addEventListener]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[variable]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=320</guid>
		<description><![CDATA[I have asked and have been asked, &#8220;How do I pass a variable to a function when using the addEventListener to call a function in ActionScript 3?&#8221; Passing a variable to a function in ActionScript 2 was a fairly simple task. However, it is not so easy using ActionScript 3. There are a few more [...]]]></description>
			<content:encoded><![CDATA[<p>I have asked and have been asked, &#8220;How do I pass a variable to a function when using the addEventListener to call a function in ActionScript 3?&#8221;</p>
<p>Passing a variable to a function in ActionScript 2 was a fairly simple task. However, it is not so easy using ActionScript 3. There are a few more things you must do first.</p>
<p>In ActionScript 2, passing a string variable looked like this.</p>
<blockquote><p><code>my_btn.onRelease = function(){<br />
doThis("whatever variable you want goes here");<br />
}</code></p>
<p><code>function doThis(a:String){<br />
trace(a);<br />
}</code></p></blockquote>
<p>In ActionScript 3, this is what I need to do to get the same results.  I initially wrote the example below thinking at some point, I will have several buttons that the user will interact with such as a navigation menu.</p>
<blockquote><p><code>var b:Array = [b1_btn, b2_btn, b3_btn];<br />
var a:Array = ["zero","one","two"];</code></p>
<p><code>for (var i:int = 0; i&lt;b.length; i++) {</code><br />
<code><br />
b[i].addEventListener(MouseEvent.CLICK, clickedOne);<br />
function clickedOne(e:MouseEvent):void {<br />
for (var j:int = 0; j&lt;a.length; j++) {<br />
if (e.currentTarget.name == b[j].name) {<br />
doThis(a[j])<br />
}<br />
}<br />
}<br />
}</code></p>
<p><code>function doThis(v:String):void {<br />
trace(v);<br />
}</code></p></blockquote>
<p><a href="http://www.homergaines.com/blog/wp-content/uploads/2008/11/hg_passingvars.zip">Get the source fla file here.</a></p>
<p>If you have any questions just drop me a line.</p>
<p>UPDATE!!!</p>
<p><strong>There&#8217;s more than one way to solve this problem.</strong></p>
<p>Thanks to <a href="mailto:kidneycreation@hotmail.com">kcreation</a> for this solution.</p>
<blockquote><p>var btns:Array = [b1_btn, b2_btn, b3_btn];<br />
var a:Array = ["zero","one","two"];</p>
<p>for (var b in btns) {<br />
btns[b].name = b;<br />
btns[b].addEventListener(MouseEvent.CLICK, clickedOne);<br />
}</p>
<p>function clickedOne(e:MouseEvent):void {<br />
var b:int = int(event.currentTarget.name);<br />
doThis(a[b]);<br />
}</p>
<p>function doThis(v:String):void {<br />
trace(v);<br />
}</p></blockquote>
<p>Thanks to <a href="http://www.as3errors.com/" target="_blank"><span>Mykola Bilokonsky</span></a> for this solution.</p>
<blockquote><p>var buttons:Array = [b1_btn, b2_btn, b3_btn];</p>
<p>var dict:Dictionary = new Dictionary();<br />
dict[b1_btn] = &#8220;String Argument&#8221;;<br />
dict[b2_btn] = new MySampleMovieClip();<br />
dict[b3_btn] = 7</p>
<p>for each (var b:MovieClip in buttons) {<br />
b.buttonMode = true;<br />
b.addEventListener(MouseEvent.CLICK, myHandler);<br />
}</p>
<p>function myHandler(e:MouseEvent):void {<br />
var myVariable = dict[e.currentTarget];<br />
}</p></blockquote>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/11/passing-varibles-to-a-function-in-as3/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/11/passing-varibles-to-a-function-in-as3/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/11/passing-varibles-to-a-function-in-as3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tween.onMotion Methods</title>
		<link>http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/</link>
		<comments>http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 15:36:46 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[actionscript 2]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[reference]]></category>
		<category><![CDATA[tween]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=271</guid>
		<description><![CDATA[Pulled these out of the Flash Help section and figured I post them here as a reference. AS2 Method Description Tween.continueTo() Instructs the tweened animation to continue from its current value to a new value. Tween.fforward() Forwards the tweened animation directly to the end of the animation. Tween.nextFrame() Forwards the tweened animation to the next [...]]]></description>
			<content:encoded><![CDATA[<p>Pulled these out of the Flash Help section and figured I post them here as a reference. </p>
<h2><strong>AS2</strong></h2>
<p><strong>Method Description </strong></p>
<blockquote><p><strong>Tween.continueTo()</strong><br />
Instructs the tweened animation to continue from its current value to a new value.</p>
<p><strong>Tween.fforward()</strong><br />
Forwards the tweened animation directly to the end of the animation.</p>
<p><strong>Tween.nextFrame()</strong><br />
Forwards the tweened animation to the next frame.<br />
<strong><br />
Tween.prevFrame()</strong><br />
Directs the tweened animation to the frame previous to the current frame.</p>
<p><strong>Tween.resume()</strong><br />
Resumes a tweened animation from its stopped point in the animation.</p>
<p><strong>Tween.rewind()</strong><br />
Rewinds a tweened animation to the beginning of the tweened animation.</p>
<p><strong>Tween.start()</strong><br />
Starts the tweened animation from the beginning.</p>
<p><strong>Tween.stop()</strong><br />
Stops the tweened animation at its current position.</p>
<p><strong>Tween.toString()</strong><br />
Returns the class name, &#8220;[Tween]&#8220;.</p>
<p><strong>Tween.yoyo()</strong><br />
Instructs the tweened animation to play in reverse from its last direction of tweened property increments.</p></blockquote>
<p><strong>Event Description </strong></p>
<blockquote><p><strong>Tween.onMotionChanged</strong><br />
Event handler; invoked with each change in the tweened object&#8217;s property that is being animated.</p>
<p><strong>Tween.onMotionFinished</strong><br />
Event handler; invoked when the Tween object finishes its animation.</p>
<p><strong>Tween.onMotionResumed</strong><br />
Event handler; invoked when the Tween.resume() method is called, causing the tweened animation to resume.</p>
<p><strong>Tween.onMotionStarted</strong><br />
Event handler; invoked when the Tween.start() method is called, causing the tweened animation to start.</p>
<p><strong>Tween.onMotionStopped</strong><br />
Event handler; invoked when the Tween.stop() method is called, causing the tweened animation to stop.</p></blockquote>
<h2><strong>AS3</strong></h2>
<p><strong>Method Description </strong></p>
<blockquote><p><strong>Tween(obj:Object, prop:String, func:Function, begin:Number, finish:Number, duration:Number, useSeconds:Boolean = false)</strong><br />
Creates an instance of the Tween class.</p>
<p><strong>continueTo(finish:Number, duration:Number):void </strong><br />
Instructs the tweened animation to continue tweening from its current animation point to a new finish and duration point.</p>
<p><strong>fforward():void </strong><br />
Forwards the tweened animation directly to the final value of the tweened animation.</p>
<p><strong>nextFrame():void </strong><br />
Forwards the tweened animation to the next frame of an animation that was stopped.</p>
<p><strong>prevFrame():void </strong><br />
Plays the previous frame of the tweened animation from the current stopping point of an animation that was stopped.</p>
<p><strong>resume():void </strong><br />
Resumes the play of a tweened animation that has been stopped.</p>
<p><strong>rewind(t:Number = 0):void </strong><br />
Moves the play of a tweened animation back to its starting value.</p>
<p><strong>stop():void </strong><br />
Stops the play of a tweened animation at its current value.</p>
<p><strong>yoyo():void </strong><br />
Instructs the tweened animation to play in reverse from its last direction of tweened property increments.</p></blockquote>
<p><strong>Event Description </strong></p>
<blockquote><p><strong>TweenEvent.motionChange</strong><br />
Indicates that the Tween has changed and the screen has been updated. </p>
<p><strong>TweenEvent.motionFinish</strong><br />
Indicates that the Tween has reached the end and finished. </p>
<p><strong>TweenEvent.motionLoop</strong><br />
Indicates that the Tween has restarted playing from the beginning in looping mode. </p>
<p><strong>TweenEvent.motionResume</strong><br />
Indicates that the Tween has resumed playing after being paused. </p>
<p><strong>TweenEvent.motionStart</strong><br />
Indicates that the motion has started playing. </p>
<p><strong>TweenEvent.motionStop</strong><br />
Indicates that the Tween has been stopped with an explicit call to Tween.stop().</p></blockquote>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Made it to Vegas</title>
		<link>http://www.homergaines.com/blog/2008/10/made-it-to-vegas/</link>
		<comments>http://www.homergaines.com/blog/2008/10/made-it-to-vegas/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 18:40:06 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[serge nikolich]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=259</guid>
		<description><![CDATA[Made it in to Vegas last night where I will be working with Creative Director Serge Nikolich on a couple of projects he has in the works.  The first one we are tackling in a pharmaceitical site.  Obviously the whole thing will be in flash and will incorporate some video as well.  This is going [...]]]></description>
			<content:encoded><![CDATA[<p>Made it in to Vegas last night where I will be working with Creative Director <a title="Serge Nikolich" href="http://www.veraglow.com/" target="_blank">Serge Nikolich</a> on a couple of projects he has in the works.  The first one we are tackling in a pharmaceitical site.  Obviously the whole thing will be in flash and will incorporate some video as well.  This is going to be fun.</p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/10/made-it-to-vegas/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/10/made-it-to-vegas/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/10/made-it-to-vegas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tween Import : AS2 and AS3</title>
		<link>http://www.homergaines.com/blog/2008/09/tween-import/</link>
		<comments>http://www.homergaines.com/blog/2008/09/tween-import/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 20:15:41 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[tween]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=223</guid>
		<description><![CDATA[I like to use code to handle basic animations like fades and sliding assets in. When you want to use the Tween class to add scripted motion to your projects, you&#8217;ll need to import these first. Actionscript 2 import mx.transitions.Tween; import mx.transitions.easing.*; Actionscript 3 import fl.transitions.Tween; import fl.transitions.easing.*; For tween methods click here. url='http://www.homergaines.com/blog/2008/09/tween-import/';size='small';]]></description>
			<content:encoded><![CDATA[<p>I like to use code to handle basic animations like fades and sliding assets in.  When you want to use the Tween class to add scripted motion to your projects, you&#8217;ll need to import these first.</p>
<h2><strong>Actionscript 2</strong></h2>
<blockquote><p><code>import mx.transitions.Tween;<br />
import mx.transitions.easing.*;</code></p></blockquote>
<h2><strong>Actionscript 3</strong></h2>
<blockquote><p><code>import fl.transitions.Tween;<br />
import fl.transitions.easing.*;</code></p></blockquote>
<p>For tween methods <a title="Tween Methods" href="http://www.homergaines.com/blog/2008/10/tweenonmotion-methods/">click here</a>.</p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/09/tween-import/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/09/tween-import/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/09/tween-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serenity Now Button</title>
		<link>http://www.homergaines.com/blog/2008/09/serenity-now-button/</link>
		<comments>http://www.homergaines.com/blog/2008/09/serenity-now-button/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 19:28:09 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[homer gaines]]></category>
		<category><![CDATA[playing]]></category>
		<category><![CDATA[stress]]></category>
		<category><![CDATA[toy]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=208</guid>
		<description><![CDATA[A couple of the girls in the office were having a tough week and kept say &#8220;Serenity Now!!!&#8221; when their frustration levels were reaching critical.  They borrowed the saying from old Seinfeld episodes and even found a &#8220;Serenity Now!&#8221; montage on youtube.  Afterwards, instead of yelling out, someone would just play the video. That&#8217;s when [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of the girls in the office were having a tough week and kept say &#8220;Serenity Now!!!&#8221; when their frustration levels were reaching critical.  They borrowed the saying from old Seinfeld episodes and even found a <a title="Serenity Now Montage" href="http://www.youtube.com/watch?v=5513mXmQbw4" target="_blank">&#8220;Serenity Now!&#8221; montage on youtube</a>.  Afterwards, instead of yelling out, someone would just play the video. That&#8217;s when I decided to make a button they could run on their desktop and hit when need be.</p>
<p>So if you too are having one of those days, feel free to <a title="serenitybutton.zip" href="http://www.homergaines.com/serenitybutton.zip">download </a>the <a title="serenitybutton.zip" href="http://www.homergaines.com/serenitybutton.zip">zip</a> file.  The zip contains the exe, swf and app file types. I&#8217;ll be converting it to an AIR app soon and adding other mood appropriate sayings to the mix.</p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/09/serenity-now-button/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/09/serenity-now-button/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/09/serenity-now-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ForceSmoothing in ActionScript 2</title>
		<link>http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/</link>
		<comments>http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 21:09:36 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[forceSmoothing]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[xirclebox]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/</guid>
		<description><![CDATA[I&#8217;m working on this project where I need to import images listed in a XML file into the application. Each image goes through a series of size variations depending on where you are in the application. Now they could have shot different sized images for me to use but to save on cost I&#8217;m working [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on this project where I need to import images listed in a XML file into the application.  Each image goes through a series of size variations depending on where you are in the application.  Now they could have shot different sized images for me to use but to save on cost I&#8217;m working with one larger image and scaling it as needed.  So  if you have worked with Flash before and have scaled images down, you&#8217;ll know that the image being scaled doesn&#8217;t render as smooth as you would like.  Especially when the images have detailed patterns and or colors all over the place.</p>
<p>To get around the rending issue when you drop an image on the stage I could set &#8220;Allow smoothing&#8221; in the properties menu of the image within the flash library. but since these image are dynamic, that won&#8217;t work.</p>
<p>Flash has the ability to smooth images that are loaded via loadMovie by using &#8220;forceSmoothing&#8221; but from what I have seen online, many people don&#8217;t see a difference when using it.</p>
<p>After messing around with it, I did manage to get it to work.</p>
<p>First I tried to apply forceSmoothing to the clip from my actions layer.</p>
<blockquote><p><span style="font-family: Courier New;">emptyClip.forceSmoothing = true</span></p></blockquote>
<p>this failed!</p>
<p>I had to place the code on the movieClip itself, something I try not do ever but for this project, it worked but was not 100%.</p>
<blockquote><p><span style="font-family: Courier New;">onClipEvent (load) {<br />
this.forceSmoothing = true;<br />
}<br />
</span></p></blockquote>
<p>To reach the goal I had to add &#8220;_quality = &#8220;BEST&#8221;;&#8221; to the mix.</p>
<blockquote><p>_quality = &#8220;BEST&#8221;;</p></blockquote>
<p>This told the flash to render the movie at a higher quality than the default rendering setting.  I did test this to see if it would work without the onClipEvent and it failed.</p>
<p>So in conclusion, in order to have larger images scaled down render smoothly, you will need to use &#8220;forceSmoothing&#8221; and &#8220;_quality = &#8220;BEST&#8221; together.</p>
<p>YAY!!! No more ugly looking images and the client doesn&#8217;t have to go spend more money on photo shoots!</p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/08/forcesmoothing-in-actionscript-2/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Enhanced Flash Layer Colors</title>
		<link>http://www.homergaines.com/blog/2008/08/enhanced-flash-layer-colors/</link>
		<comments>http://www.homergaines.com/blog/2008/08/enhanced-flash-layer-colors/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 18:44:32 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lab]]></category>
		<category><![CDATA[Skipping Rocks]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[ux]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=164</guid>
		<description><![CDATA[In my day to day activities, I used Flash quite often and I have some ideas about what I would like to see change with the application so I figured I would post some of my ideas here in addition to letting the dev team over at Adobe know as well. The first is Enhanced [...]]]></description>
			<content:encoded><![CDATA[<p>In my day to day activities, I used Flash quite often and I have some ideas about what I would like to see change with the application so I figured I would post some of my ideas here in addition to letting the dev team over at Adobe know as well.</p>
<p>The first is Enhanced Layer Colors.  Depending on the project, I can have a ton of layers.  Even though I have ability to use folders, that only takes care of my vertical space management.  But what about quickly being able to track a layer a sea of layers?  Or how about when I try to find a layer in a sea of layers when I have outlines enabled? Even then, the  Outline Color indicator itself turns into an outline.</p>
<p>This is where Enhanced Layer Colors come into handy.  The idea is simple. Color the entire layer with a lighter shade of the Outline Color indicator. This feature could be managed through the layer preferences menu Just as the Outline color is currently. This would aid in easier tracking of layers at a glance.</p>
<p>The image below shows what the layers look like in their current state and what they could like with Enhanced Layer Colors enabled.</p>
<p><img class="alignnone size-full wp-image-165" title="enhanced_layers" src="http://www.homergaines.com/blog/wp-content/uploads/2008/08/enhanced_layers.png" alt="" width="354" height="284" /></p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/08/enhanced-flash-layer-colors/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/08/enhanced-flash-layer-colors/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/08/enhanced-flash-layer-colors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparison: Importing an image using ActionScript 2 and 3</title>
		<link>http://www.homergaines.com/blog/2008/07/comparison-importing-an-image-using-actionscript-2-and-3/</link>
		<comments>http://www.homergaines.com/blog/2008/07/comparison-importing-an-image-using-actionscript-2-and-3/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 19:26:49 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 2.0]]></category>
		<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project Management]]></category>
		<category><![CDATA[actioscript]]></category>
		<category><![CDATA[as2]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=134</guid>
		<description><![CDATA[If you are going to develop flash based content using AS3, you should know it takes a bit more work to do simple things.  For example, say for inistance you want to load an image into a movie clip called "imgHold_mc" using ActionScript 2,  you could use the following code:
]]></description>
			<content:encoded><![CDATA[<p>If you are going to develop flash based content using AS3, you should know it takes a bit more work to do simple things.  For example, say for inistance you want to load an image into a movie clip called &#8220;imgHold_mc&#8221; using ActionScript 2,  you could use the following code:</p>
<blockquote><p><code>function loadImage() {<br />
imgHold_mc.loadMovie(imgUrl);<br />
}<br />
loadImage();</code></p>
<p>-or-</p>
<p><code>var url:String = "imgUrl";<br />
function loadImage(link:String){<br />
imgHold.loadMovie(link);<br />
}<br />
loadImage(url);</code></p></blockquote>
<p>If you wanted to do the same thing but using ActionScript 3, you would need to use the code bellow:</p>
<blockquote><p><code>var imageLoader:Loader;<br />
function loadImage(url:String):void {<br />
imageLoader = new Loader();<br />
imageLoader.load(new URLRequest(url));<br />
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);<br />
}<br />
loadImage(imgUrl);<br />
function imageLoaded(e:Event):void {<br />
imgHold_mc.addChild(imageLoader);<br />
}</code></p>
<p>-or-</p>
<p><code>var imageLoader:Loader = new Loader();<br />
imageLoader.load(new URLRequest(url));<br />
imgHold_mc.addChild(imageLoader);</code></p>
<p>thanks Luis :)</p></blockquote>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/07/comparison-importing-an-image-using-actionscript-2-and-3/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/07/comparison-importing-an-image-using-actionscript-2-and-3/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/07/comparison-importing-an-image-using-actionscript-2-and-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 Can Be A Pain</title>
		<link>http://www.homergaines.com/blog/2008/07/actionscript-3-can-be-a-pain/</link>
		<comments>http://www.homergaines.com/blog/2008/07/actionscript-3-can-be-a-pain/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 05:29:08 +0000</pubDate>
		<dc:creator>homer</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Articles of Intrest]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[homergaines]]></category>
		<category><![CDATA[xirclebox]]></category>

		<guid isPermaLink="false">http://www.homergaines.com/blog/?p=133</guid>
		<description><![CDATA[From the first time I picked up a book on ActionScript 3 I have had some level of anxiety.  It&#8217;s that usual song and dance when dealing with a new version of Flash. With a new release come the task of learning the new and improved way of writing ActionScript.  Now grantted, the evolution of [...]]]></description>
			<content:encoded><![CDATA[<p>From the first time I picked up a book on ActionScript 3 I have had some level of anxiety.  It&#8217;s that usual song and dance when dealing with a new version of Flash. With a new release come the task of learning the new and improved way of writing ActionScript.  Now grantted, the evolution of ActioScript has been a good thing thus far but AS3 is a bit on the rough side.  Code was easier to write in AS2. I could write simple functions using less code unlike in AS3.  However AS3 is not all bad. The improved handling of XML data is great. By far, much better than before and that&#8217;s one of the main reasons I use AS3.</p>
<p>Anyway the purpose of this post is to point out an article I came across today the Colin Mook had written about issues with AS3 and what Adobe should do to fix them.  It&#8217;s a good read and realy hits the nail on the head.</p>
<p><a title="The Charges Against ActionScript 3.0" href="http://www.insideria.com/2008/07/the-charges-against-actionscri.html" target="_self">The Charges Against ActionScript 3.0</a></p>
<div id='retweet_button' style='float:left;margin-left: 10px;'><a class="addthis_button" addthis:url="http://www.homergaines.com/blog/2008/07/actionscript-3-can-be-a-pain/" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a9a4e0e5333be83"><img src="http://s7.addthis.com/static/btn/sm-share-en.gif" width="83" height="16" alt="Bookmark and Share" style="border:0;margin-bottom: 4px; margin-right: 8px;"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a9a4e0e5333be83"></script><script type="text/javascript">url='http://www.homergaines.com/blog/2008/07/actionscript-3-can-be-a-pain/';size='small';</script><script type="text/javascript" src="http://www.retweet.com/static/retweets.js"></script></div>]]></content:encoded>
			<wfw:commentRss>http://www.homergaines.com/blog/2008/07/actionscript-3-can-be-a-pain/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
