<?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; Flash</title>
	<atom:link href="http://www.benwatts.ca/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benwatts.ca</link>
	<description>The crazy ramblings of designer/web developer Ben Watts.</description>
	<lastBuildDate>Sat, 02 Jan 2010 22:31:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Sunflowers, Spirals, Flash</title>
		<link>http://www.benwatts.ca/2009/06/28/sunflowers-spirals-flash/</link>
		<comments>http://www.benwatts.ca/2009/06/28/sunflowers-spirals-flash/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 13:44:01 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[sunflower]]></category>

		<guid isPermaLink="false">http://www.benwatts.ca/?p=472</guid>
		<description><![CDATA[Recently a project came up that had the potential to use an abstract sunflower as a lovely motif. After looking into it a bit, there happened to be an equation describing the arrangement of seeds in a sunflower. The equations looked fairly straightforward, but I&#8217;m no math wizard and had no idea to figure out [...]]]></description>
			<content:encoded><![CDATA[<p>Recently a project came up that had the potential to use an abstract sunflower as a lovely motif. After looking into it a bit, there happened to be an <a href="http://en.wikipedia.org/wiki/Sunflower#Mathematical_model_of_floret_arrangement">equation describing the arrangement of seeds in a sunflower</a>. The equations looked fairly straightforward, but I&#8217;m no math wizard and had no idea to figure out the x and y coordinates of the &#8216;seeds&#8217;, but lucky for me I happen to sit across from <a title="Rob Villeneuve" href="http://deletedtheory.com/blog/">someone</a> who knows what the hell they&#8217;re doing and as a result I have a simple sunflower generator:</p>
<div id="sunflower-placeholder">To view this content, JavaScript must be enabled, and you need the latest version of the <a href="http://get.adobe.com/flashplayer/">Adobe Flash Player</a>.</div>
<p><script type="text/javascript">
                    // <![CDATA[
                    var flashvars = {};
                    var params = {}
                    var attributes = {};
                    swfobject.embedSWF("/wp-content/uploads/2009/06/Sunflower.swf", "sunflower-placeholder", "560", "460", "9.0.0", false, flashvars, params, attributes);
                    //]]&gt;
</script> </p>
<p><span id="more-472"></span></p>
<h3>The Code</h3>
<p>You will need to have a Slider component in your library for this to compile (or remove all references to the slider until it compiles). If you&#8217;re into this type of thing then definitely play around with the constant scaling factor, max number of seeds, and the golden ratio number in the angle (137.5).</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:540px;height:300px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="coMULTI">/** <br />
&nbsp;* Sunflower Generator <br />
&nbsp;* June 28, 2009 <br />
&nbsp;*<br />
&nbsp;* @author&nbsp; &nbsp; &nbsp; Ben Watts<br />
&nbsp;* @url &nbsp; &nbsp; &nbsp; &nbsp; http://www.benwatts.ca/<br />
&nbsp;* @post&nbsp; &nbsp; &nbsp; &nbsp; http://www.benwatts.ca/2009/06/28/sunflowers-spirals-flash/<br />
&nbsp;**/</span><br />
<br />
<span class="kw4">package</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">import</span> <span class="kw6">flash.display</span>.<span class="sy0">*</span>;<br />
&nbsp; &nbsp; <span class="kw1">import</span> fl.controls.Slider;<br />
&nbsp; &nbsp; <span class="kw1">import</span> fl.events.SliderEvent;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw1">public</span> <span class="kw4">class</span> Sunflower extends <span class="kw5">MovieClip</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> maxSeeds<span class="sy0">:</span><span class="kw5">Number</span> = <span class="nu0">9000</span>; &nbsp;<span class="co1">// # of seeds</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> <span class="kw7">c</span><span class="sy0">:</span><span class="kw5">Number</span> = <span class="nu0">4</span>; <span class="co1">// constant scaling factor (distance btw seeds)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> <span class="kw7">angle</span><span class="sy0">:</span><span class="kw5">Number</span> = <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">public</span> <span class="kw3">function</span> Sunflower<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawSunflower<span class="br0">&#40;</span>.1<span class="br0">&#41;</span>; <span class="co1">// start with something </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> slider<span class="sy0">:</span>Slider = <span class="kw1">new</span> Slider<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.liveDragging = <span class="kw1">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.minimum = <span class="nu0">1</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.setSize<span class="br0">&#40;</span><span class="nu0">150</span>, <span class="nu0">5</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.<span class="kw7">x</span> = <span class="kw7">stage</span>.<span class="kw7">stageWidth</span> <span class="sy0">-</span> slider.<span class="kw7">width</span> <span class="sy0">-</span> <span class="nu0">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.<span class="kw7">y</span> = <span class="nu0">10</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; slider.<span class="kw7">addEventListener</span><span class="br0">&#40;</span>SliderEvent.<span class="kw8">CHANGE</span>, sliderChange<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw7">addChild</span><span class="br0">&#40;</span>slider<span class="br0">&#41;</span>; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="coMULTI">/**<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Event handler, whenever the slider's value changes <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* @param &nbsp; &nbsp; &nbsp; e &nbsp; - SliderEvent<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">private</span> <span class="kw3">function</span> sliderChange<span class="br0">&#40;</span>e<span class="sy0">:</span>SliderEvent<span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; drawSunflower<span class="br0">&#40;</span>e.<span class="kw7">value</span><span class="sy0">/</span><span class="nu0">10</span><span class="br0">&#41;</span>; <span class="co1">// returns value btw 1.0 and 10.0</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="coMULTI">/**<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Draws the sunflower. <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*&nbsp; @param &nbsp;&nbsp; &nbsp; value &nbsp; - the % of the max number of seeds that are set to be drawn. Expects a float 0 - 1.0<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">private</span> <span class="kw3">function</span> drawSunflower<span class="br0">&#40;</span><span class="kw7">value</span><span class="sy0">:</span><span class="kw5">Number</span><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> n<span class="sy0">:</span><span class="kw5">Number</span> = <span class="nu0">0</span>; <span class="co1">// current seed</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> numSeeds<span class="sy0">:</span><span class="kw5">Number</span> = maxSeeds <span class="sy0">*</span> <span class="kw7">value</span>; <span class="co1">// how many seeds should be made</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">try</span> <span class="br0">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw7">removeChild</span><span class="br0">&#40;</span><span class="kw7">getChildByName</span><span class="br0">&#40;</span><span class="st0">'seed-container'</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">catch</span><span class="br0">&#40;</span>e<span class="sy0">:</span><span class="kw5">Error</span><span class="br0">&#41;</span><span class="br0">&#123;</span> <span class="coMULTI">/* this makes me a terrible person, i know. */</span> <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> container<span class="sy0">:</span><span class="kw5">MovieClip</span> = <span class="kw1">new</span> <span class="kw5">MovieClip</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span class="kw7">name</span> = <span class="st0">'seed-container'</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw7">addChild</span><span class="br0">&#40;</span>container<span class="br0">&#41;</span>;<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">for</span><span class="br0">&#40;</span> n; n <span class="sy0">&lt;</span> numSeeds; n<span class="sy0">++</span> <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> seed<span class="sy0">:</span><span class="kw5">Sprite</span> = <span class="kw1">new</span> <span class="kw5">Sprite</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seed.<span class="kw7">graphics</span>.<span class="kw7">beginFill</span><span class="br0">&#40;</span>0xff0000 <span class="sy0">-</span> <span class="br0">&#40;</span>n<span class="sy0">*</span><span class="nu0">15</span><span class="br0">&#41;</span>, <span class="nu0">1.0</span><span class="br0">&#41;</span>; <span class="co1">// messing with seed colour, don't really know what i'm doing ;)</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seed.<span class="kw7">graphics</span>.<span class="kw7">drawCircle</span><span class="br0">&#40;</span><span class="nu0">0</span>,<span class="nu0">0</span>,<span class="nu0">2</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seed.<span class="kw7">graphics</span>.<span class="kw7">endFill</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> r<span class="sy0">:</span><span class="kw5">Number</span> = <span class="kw7">c</span> <span class="sy0">*</span> <span class="kw5">Math</span>.<span class="kw7">sqrt</span><span class="br0">&#40;</span>n<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">var</span> <span class="kw7">angle</span><span class="sy0">:</span><span class="kw5">Number</span> = n <span class="sy0">*</span> <span class="nu0">137.5</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seed.<span class="kw7">x</span> = r <span class="sy0">*</span> <span class="kw5">Math</span>.<span class="kw7">sin</span><span class="br0">&#40;</span><span class="kw7">angle</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; seed.<span class="kw7">y</span> = r <span class="sy0">*</span> <span class="kw5">Math</span>.<span class="kw7">cos</span><span class="br0">&#40;</span><span class="kw7">angle</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span class="kw7">addChild</span><span class="br0">&#40;</span>seed<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">// centre on the stage</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span class="kw7">x</span> <span class="sy0">+</span>= <span class="kw7">stage</span>.<span class="kw7">stageWidth</span><span class="sy0">/</span><span class="nu0">2</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span class="kw7">y</span> <span class="sy0">+</span>= <span class="kw7">stage</span>.<span class="kw7">stageHeight</span><span class="sy0">/</span><span class="nu0">2</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <br />
<span class="br0">&#125;</span></div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2009/06/28/sunflowers-spirals-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jump Around</title>
		<link>http://www.benwatts.ca/2009/04/30/jump-around/</link>
		<comments>http://www.benwatts.ca/2009/04/30/jump-around/#comments</comments>
		<pubDate>Fri, 01 May 2009 02:01:18 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[jumping]]></category>

		<guid isPermaLink="false">http://www.benwatts.ca/?p=391</guid>
		<description><![CDATA[I&#8217;ve been tinkering with Sprites and the idea of making a silly little game in Flash with AS3, to flex (PUN?) my actionscript chops. This is the meagre progress I&#8217;ve made so far, and I thought I&#8217;d make it open source for all the world to gasp at my horrendous code. I&#8217;m currently at the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been tinkering with Sprites and the idea of making a silly little game in Flash with AS3, to flex (PUN?) my actionscript chops. This is the meagre progress I&#8217;ve made so far, and I thought I&#8217;d make it open source for all the world to gasp at my horrendous code. I&#8217;m currently at the<em> &#8220;HOLY CRAP I MADE A CHARACTER THAT CAN JUMP USING AS3&#8243;</em> stage of development. </p>
<p>How about that linear jump? Needs some gravity love, eh? </p>
<div id="game090430"><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></div>
<p><strong> <a href="/wp-content/storage/mariogame/090430/mario.zip">SOURCE</a> (71 KB, .zip) </strong></p>
<p><small> You might have to click on the swf to give it focus and enable keyboard controls to move/jump. Shift+Left/Right to &#8216;run&#8217; (*his legs don&#8217;t move*). No collision detection whatsoever, yet.</small></p>
<p><script type="text/javascript">
			var flashvars = {};
			var params = {};
			var attributes = {};
			swfobject.embedSWF("/wp-content/storage/mariogame/090430/bin/mario.swf", "game090430", "500", "250", "10.0.0", false, flashvars, params, attributes);
		</script></p>
<p>Below is the event handler I&#8217;m using for jumping, which is called on every frame after the user presses the up key, until the jump is complete:</p>
<div class="codecolorer-container actionscript3 " style="overflow:auto;white-space:nowrap;width:540px;height:300px"><div class="actionscript3 codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw1">private</span> <span class="kw3">function</span> jump<span class="br0">&#40;</span>e<span class="sy0">:</span><span class="kw5">Event</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="kw2">var</span> jumpDestination<span class="sy0">:</span><span class="kw5">Number</span> = groundLevel <span class="sy0">-</span> MAX_JUMP_HEIGHT;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span class="co1">// only attempt to stop the jump if you've already left the ground</span><br />
&nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span> inAir <span class="sy0">&amp;&amp;</span> <span class="kw7">y</span><span class="sy0">+</span><span class="kw7">height</span> == groundLevel <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp;dy = <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;groundLevel = <span class="nu0">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;inAir = <span class="kw1">false</span>; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="kw7">removeEventListener</span><span class="br0">&#40;</span><span class="kw5">Event</span>.<span class="kw8">ENTER_FRAME</span>, jump<span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp;<span class="kw1">return</span> <span class="kw1">false</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp;<span class="kw1">if</span><span class="br0">&#40;</span> <span class="kw7">y</span> <span class="sy0">&gt;</span>= jumpDestination <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; inAir = <span class="kw1">true</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; dy <span class="sy0">-</span>= <span class="nu0">4</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span> <span class="kw7">y</span> <span class="sy0">&lt;</span>= jumpDestination <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; dy <span class="sy0">+</span>= <span class="nu0">4</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <br />
<span class="br0">&#125;</span></div></div>
<p>Eh? Eh? I felt good after figuring that one out. Ahaha. Looking at it though, I think I should be stopping the jump based upon some collision detection. As it stands right now, it wouldn&#8217;t work if you wanted to jump onto something (since it will only stop the jump if you hit the point you&#8217;ve started at. Development is early, what can I say. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2009/04/30/jump-around/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Flash Everywhere</title>
		<link>http://www.benwatts.ca/2008/06/22/flash-flash-everywhere/</link>
		<comments>http://www.benwatts.ca/2008/06/22/flash-flash-everywhere/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 02:02:34 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://localhost/benwatts.ca/?p=135</guid>
		<description><![CDATA[I would by no means call myself anything more than a &#8216;novice&#8217; at programming with Actionscript; it&#8217;s not something I have volumes of experience in, outside of the program I took in college. I swore I&#8217;d never work on another Flash project after my last class, and a couple weeks later I was at a [...]]]></description>
			<content:encoded><![CDATA[<p>I would by no means call myself anything more than a &#8216;novice&#8217; at programming with Actionscript; it&#8217;s not something I have volumes of experience in, outside of the program I took in college. I swore I&#8217;d never work on another Flash project after my last class, and a couple weeks later I was at a <a href="/2008/02/25/flexible/">3-day Flex training course</a>.  To continue the trend, I&#8217;ve been doing quite a lot of Actionscript (3) at work for the past month or so at work, making interactive maps (eep!) &#8212; I&#8217;ve been called &#8216;the map guy&#8217; by some because of it.</p>
<p><strong>HENCE ALL THE ACTIONSCRIPT 3 RELATED POSTS.</strong></p>
<p>Indeed, I had set up a separate blog to keep track of the little nuances/annoyances I learned (and that I&#8217;m still learning!) while reading and programming in AS3. Then I realized it was a waste of time to maintain another blog and promptly merged it with this one. Funny how things work out &#8230; </p>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2008/06/22/flash-flash-everywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Pixelshift Bug</title>
		<link>http://www.benwatts.ca/2008/04/16/flash-pixelshift-bug/</link>
		<comments>http://www.benwatts.ca/2008/04/16/flash-pixelshift-bug/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 13:58:36 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://www.rainiscold.ca/seaturtle/?p=7</guid>
		<description><![CDATA[Flash apparently has a thing with cutting off .pngs. Putting the graphic element in a movieclip with a bottom right alignment seems to solve the problem, as per here: http://www.fatorcaos.com.br/flashimagebug/]]></description>
			<content:encoded><![CDATA[<p>Flash apparently has a thing with cutting off .pngs. Putting the graphic element in a movieclip with a bottom right alignment seems to solve the problem, as per here:</p>
<p>http://www.fatorcaos.com.br/flashimagebug/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.benwatts.ca/2008/04/16/flash-pixelshift-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
