<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>fat lines of code</title>
	
	<link>http://fatlinesofcode.philipandrews.org</link>
	<description>100% loaded on actionscipt</description>
	<lastBuildDate>Tue, 13 Oct 2009 07:51:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/FatLinesOfCode" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Box2D Ballooning</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/10/10/box2d-ballooning/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/10/10/box2d-ballooning/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 16:55:24 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://fatlinesofcode.philipandrews.org/?p=327</guid>
		<description><![CDATA[<div style="text-align:center; margin-bottom:10px">
<a style="border:none" href="http://philipandrews.org/sandbox/up/balloning.html" target="_blank"><img src="http://fatlinesofcode.philipandrews.org/wp-content/uploads/2009/10/ballonscreen1.png" alt="ballonscreen" title="ballonscreen" width="450" height="269" class="aligncenter size-full wp-image-329" style="border:solid 1px white" /></a></div>
<p>Many of you may of seen Pixars recent movie <a href="http://disney.go.com/disneypictures/UP/" target="_blank">UP</a>. In the movie the main character manages to take flight in his house by attaching dozens of inflatable balloons to the roof. Seems a bit far fetched don&#8217;t you think? Obviously the guys at Pixar aren&#8217;t too concerned with the laws of physics.<br />
Well here at fatlinesofcode we don&#8217;t mind if cartoons break the laws of physcis either. But we do love to test them.<br />
I have built a fun prototype game&#8230;</p>]]></description>
			<content:encoded><![CDATA[<div style="text-align:center; margin-bottom:10px">
<a style="border:none" href="http://philipandrews.org/sandbox/up/balloning.html" target="_blank"><img src="http://fatlinesofcode.philipandrews.org/wp-content/uploads/2009/10/ballonscreen1.png" alt="ballonscreen" title="ballonscreen" width="450" height="269" class="aligncenter size-full wp-image-329" style="border:solid 1px white" /></a></div>
<p>Many of you may of seen Pixars recent movie <a href="http://disney.go.com/disneypictures/UP/" target="_blank">UP</a>. In the movie the main character manages to take flight in his house by attaching dozens of inflatable balloons to the roof. Seems a bit far fetched don&#8217;t you think? Obviously the guys at Pixar aren&#8217;t too concerned with the laws of physics.<br />
Well here at fatlinesofcode we don&#8217;t mind if cartoons break the laws of physcis either. But we do love to test them.<br />
I have built a fun prototype game in Box2D to test this house ballooning theory. The house is a box with multiple balls attached via distance joints. Each of the balls has an anti-gravitational force applied to it which provides lift to the house. To pilot this balloon the UP arrow key is used to simulate adding more hot air to the balloons. Each time you press it an upward force is applied to each balloon thus providing more lift to the house. Additionally the LEFT and RIGHT arrow keys can be used to apply left and right forces to the house. Combining these controls you can achieve steady flight. Check out the <a href="http://philipandrews.org/sandbox/up/balloning.html" target="_blank">demo</a> and try manoeuvring your balloon through the various obstacles.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/yPF8TG3q9-8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/10/10/box2d-ballooning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pixelated video effect [Part II]</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/07/13/pixelated-video-effect-part-ii/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/07/13/pixelated-video-effect-part-ii/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 03:57:30 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://fatlinesofcode.philipandrews.org/?p=229</guid>
		<description><![CDATA[<div style="text-align:center">
<img src="http://fatlinesofcode.philipandrews.org/wp-content/uploads/2009/07/space.jpg" alt="space" title="space" width="330" height="290" class="aligncenter size-full wp-image-247" /></div>

I few weeks ago I posted a <a href="http://fatlinesofcode.philipandrews.org/2009/05/21/pixelated-video-effect/"> pixelation effect</a>. I have since optimised the code and also added in support for webcam input.

Checkout the demo and source code below.]]></description>
			<content:encoded><![CDATA[<div style="text-align:center">
<img src="http://fatlinesofcode.philipandrews.org/wp-content/uploads/2009/07/space.jpg" alt="space" title="space" width="330" height="290" class="aligncenter size-full wp-image-247" /></div>
<p>I few weeks ago I posted a <a href="http://fatlinesofcode.philipandrews.org/2009/05/21/pixelated-video-effect/"> pixelation effect</a>. I have since optimised the code and also added in support for webcam input.</p>
<p>Checkout the demo and source code below.</p>
<div style="border:solid 1px white; margin-bottom:10px">
<div id="swf98511">This movie requires Flash Player 10</div>
<p><script type="text/javascript">
	swfobject.embedSWF("http://philipandrews.org/sandbox/explode/videowebcam/Explode.swf", "swf98511", "466", "340", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000", allowFullScreen: "true"}, {});
</script>
</div>
<p>Here is an explanation of the technique.</p>
<p>First get the bitmapData source from the video input. Then divide the data into a grid of new bitmaps using a double for-loop. Store each one these in a two dimensional array.</p>
<pre class="brush: as3;">
private function createBitmapGrid():void {

			var source:BitmapData = getVideoSource();

			var _w:Number=source.width;
			var _h:Number=source.height;
			var rows:Number=source.height/_divideGridBy; // cols
			var cols:Number=source.width/_divideGridBy; // rows
			var cellWidth:Number = _w/cols-_cellpadding;
			var cellHeight:Number = _h/rows-_cellpadding

			for (var i:uint=0; i&lt;cols; i++) {
				for (var j:uint=0; j&lt;rows; j++) {
					var tempBitmapData:BitmapData=new BitmapData(cellWidth,cellHeight, true, 0x000000);
					var tempBitmap:Bitmap =new Bitmap(tempBitmapData);
					tempBitmap.x=i*_w/cols;
					tempBitmap.y=j*_h/rows;
					if(! _particleArray[i])
					_particleArray[i] = {};
					_particleArray[i][j] = tempBitmap;
					_holder.addChild(tempBitmap);
				}
			} 			

		}
</pre>
<p>Then add an enterframe listener to update the all the bitmap cells in the grid. Add a double for-loop to go through each cell. Use the <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/BitmapData.html#copyPixels()">copyPixel</a> function to copy a rectangular portion of the source image to each cell. After you copy the source data, find the average brightness of the cell and use it as a variable to adjust the z value of the bitmap cell.</p>
<pre class="brush: as3;">
this.addEventListener(Event.ENTER_FRAME, updateBitmapGrid);
private function updateBitmapGrid(e:Event):void {

			var source:BitmapData = getVideoSource();

			var _w:Number=source.width;
			var _h:Number=source.height;
			var rows:Number=source.height/_divideGridBy; // cols
			var cols:Number=source.width/_divideGridBy; // rows
			var cellWidth:Number = _w/cols-_cellpadding;
			var cellHeight:Number = _h/rows-_cellpadding

			for (var i:uint=0; i&lt;cols; i++) {
				for (var j:uint=0; j&lt;rows; j++) {
					var tempBitmap:Bitmap = null;
					if (_particleArray[i]) {
						if(_particleArray[i][j]){
							tempBitmap=_particleArray[i][j];
						}
					}
					if(tempBitmap != null){
						var p:Point = new Point(0, 0);
						var rect:Rectangle = new Rectangle(tempBitmap.x+_cellpadding, tempBitmap.y+_cellpadding, cellWidth, cellHeight);
						tempBitmap.bitmapData.copyPixels(source, rect, p);
						var color:Number=getAverageColour(tempBitmap.bitmapData);
						var brightness:Number=getBrightness(getAverageColour(tempBitmap.bitmapData));
						if(_moveZ)
						tempBitmap.z = 255 - (brightness * 1);

					}
				}
			}
		}
</pre>
<pre class="brush: as3;">
private function getAverageColour( source:BitmapData ):Number {
			var red:Number=0;
			var green:Number=0;
			var blue:Number=0;

			var count:Number=0;
			var pixel:Number;

			for (var x:Number = 0; x &lt; source.width; x++) {
				for (var y:Number = 0; y &lt; source.height; y++) {
					pixel=source.getPixel(x,y);

					red+=pixel&gt;&gt;16&amp;0xFF;
					green+=pixel&gt;&gt;8&amp;0xFF;
					blue+=pixel&amp;0xFF;

					count++;
				}
			}

			red/=count;
			green/=count;
			blue/=count;

			return red &lt;&lt; 16 | green &lt;&lt; 8 | blue;
		}

		private function getBrightness(colour:Number):Number {
			var R:Number=0;
			var G:Number=0;
			var B:Number=0;

			R+=colour&gt;&gt;16&amp;0xFF;
			G+=colour&gt;&gt;8&amp;0xFF;
			B+=colour&amp;0xFF;

			var br:Number=Math.sqrt(R*R*.241+G*G*.691+B*B*.068);
			return br;
		}
</pre>
<p><a href="http://fatlinesofcode.philipandrews.org/wp-content/uploads/2009/07/videowebcam.zip">Download package<br />
</a></p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/yWF-F6HXk_o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/07/13/pixelated-video-effect-part-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pixelated video effect</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/05/21/pixelated-video-effect/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/05/21/pixelated-video-effect/#comments</comments>
		<pubDate>Fri, 22 May 2009 02:02:05 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://fatlinesofcode.philipandrews.org/?p=204</guid>
		<description><![CDATA[<p>I have been experimenting more and more with bitmapdata recently. Checkout this pixelation effect I have created for flash video.</p>
<p>Here is how it works. There is an onEnterFrame function which first creates a new Bitmap object from the video source data. A grid of smaller bitmaps is then created from this large bitmap. Each one of the smaller bitmaps is analysied for it&#8217;s average color and brightness. The z property (flash 10) is then set to the inverse of brightness.&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I have been experimenting more and more with bitmapdata recently. Checkout this pixelation effect I have created for flash video.</p>
<p>Here is how it works. There is an onEnterFrame function which first creates a new Bitmap object from the video source data. A grid of smaller bitmaps is then created from this large bitmap. Each one of the smaller bitmaps is analysied for it&#8217;s average color and brightness. The z property (flash 10) is then set to the inverse of brightness. The resulting effect is that for each one of the grid blocks the block moves in and out as the brightness changes. Lighter blocks come forward and darker blocks move back. </p>
<p>Flash is magic. Now watch it and freak out.</p>
<div style="border:solid 1px white; margin-bottom:10px">
<div id="swf98511">This movie requires Flash Player 10</div>
<p><script type="text/javascript">
	swfobject.embedSWF("http://philipandrews.org/sandbox/explode/video/Explode.swf", "swf98511", "466", "340", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000", allowFullScreen: "true"}, {});
</script>
</div>
<p>Apologies to anyone with a slower machine, this swf is fairly cpu intensive. I would also recommend that you install the very latest <a href="http://www.adobe.com/support/flashplayer/downloads.html">flash player</a>(10,0,22,87 ) to ensure you get the best framerate possible.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/Vyz5QLuYuGY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/05/21/pixelated-video-effect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Runtime pixel snapping</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/05/12/runtime-pixel-snapping/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/05/12/runtime-pixel-snapping/#comments</comments>
		<pubDate>Tue, 12 May 2009 19:58:06 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://fatlinesofcode.philipandrews.org/?p=157</guid>
		<description><![CDATA[<p>Lets set the scene: your lazy. You got a sweet a design in photoshop and now you need to bring it to life in flash. Now remember your lazy so your going to use flash&#8217;s <a href="http://theflashblog.com/?p=207">PSD importer</a> to import the layers into flash. What a timer saver. Flash has has made movieclips and text layers from the photoshop layers, nice. You hookup some functions and publish the file. But something is wrong, some the text looks a little fuzzy and some&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Lets set the scene: your lazy. You got a sweet a design in photoshop and now you need to bring it to life in flash. Now remember your lazy so your going to use flash&#8217;s <a href="http://theflashblog.com/?p=207">PSD importer</a> to import the layers into flash. What a timer saver. Flash has has made movieclips and text layers from the photoshop layers, nice. You hookup some functions and publish the file. But something is wrong, some the text looks a little fuzzy and some of the lines are little blurred. You jump back to the fla and check through some of the movieclips. Bah, flash has placed some clips in-between pixels. You&#8217;ve even got the <a href="http://www.peachpit.com/articles/article.aspx?p=1248999&#038;seqNum=5">&#8216;Snap to Pixels&#8217; </a>feature turned on but flash has ignored when doing the import.<br />
This has happened to me countless times and often on a big flash project it can be real drag digging through movieclips trying to find the elusive off-pixel clip. It would great I thought if I had a little pixel pixie to go through my FLA and fix up all the movieclips and textfields. Well I couldn&#8217;t find any pixies or elfs that where willing to work for me so instead I wrote recursive function to do it at runtime.<br />
This script takes in one argument, the base movieclip it then goes through every child of that movieclip and rounds the x and y position to the nearest pixel. So that every stage instance is rendered on a whole pixel. If any of these clips have children if goes through them and rounds their position and so on and so on recursively until it does each movieclip, sprite or textfield in the swf.</p>
<pre class="brush: as3;">
roundChildren(this)
function roundChildren(base:DisplayObjectContainer):void {
	for (var i:int=0; i&amp;amp;lt;base.numChildren-1; i++) {
		var m:DisplayObject=base.getChildAt(i) as DisplayObject;
		var p:DisplayObjectContainer=base.getChildAt(i) as DisplayObjectContainer;
		if (m) {
			m.x=Math.round(m.x);
			m.y=Math.round(m.y);
			if(p){
				if (p.numChildren&amp;amp;gt;0) {
					roundChildren(p);
				}
			}
		}

	}
}
</pre>
<p>Checkout the example below to see the script in action. The pixel snapping does not effect dynamic text because of the way flash <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#antiAliasType">anti-aliases</a> it. But you can see a big improvement for the static text and vector lines placed inside a movieclip.</p>
<p>
<object width="468" height="100">
<param name="movie" value="http://philipandrews.org/sandbox/pixelpixie/pixie.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#000000"></param>
<param name="allowFullScreen" value="true"></param>
<embed type="application/x-shockwave-flash" width="468" height="100" src="http://philipandrews.org/sandbox/pixelpixie/pixie.swf" quality="high" bgcolor="#000000" wmode="window" menu="false" allowFullScreen="true" ></embed>
</object>
</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/_I2lDfShdJ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/05/12/runtime-pixel-snapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWFAddress 2.2 ♥ swfobject 2.0</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/04/02/swfaddress-2-2-and-swfobject-2-0/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/04/02/swfaddress-2-2-and-swfobject-2-0/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 22:25:22 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://fatlinesofcode.philipandrews.org/?p=109</guid>
		<description><![CDATA[<p><a href="http://www.asual.com/swfaddress/">SWFAddress</a> is the amazingly easy to use solution for deep linking in flash. Once setup its simply a case of calling <code>SWFAddress.setValue("myfolder")</code> to change the browser location bar and using <code>SWFAddress.getValue()</code>to get the current url when <code>SWFAddressEvent.CHANGE</code> is triggered.<br />
In fact SWFAddress is so simple to use that when something goes wrong it hard to find the problem because there are no options to change. The difficulty I ran into recently was when I upgraded to the latest version 2.2 For an inexplicable reason,&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.asual.com/swfaddress/">SWFAddress</a> is the amazingly easy to use solution for deep linking in flash. Once setup its simply a case of calling <code>SWFAddress.setValue("myfolder")</code> to change the browser location bar and using <code>SWFAddress.getValue()</code>to get the current url when <code>SWFAddressEvent.CHANGE</code> is triggered.<br />
In fact SWFAddress is so simple to use that when something goes wrong it hard to find the problem because there are no options to change. The difficulty I ran into recently was when I upgraded to the latest version 2.2 For an inexplicable reason, swfaddress&#8217;s <code>SWFAddressEvent.CHANGE</code> would no longer trigger.<br />
I finally isolated the issue to how you include the swfaddress &#038; <a href="http://code.google.com/p/swfobject/">swfobject</a> javascripts in your html. The order of includes is extremely important. Swfobject must be included <strong>before</strong> swfaddress, if you using <a href="http://swffit.millermedeiros.com/">swffit</a> add this after swfaddress. Also you <strong>must</strong> add a flash id to swfobject&#8217;s attributes for embedding. Check out the example below for for SWFAddress 2.2, SWFObject 2 and swffit harmony. </p>
<pre class="brush: xml;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;swfobject.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;swfaddress.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;swffit.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var flashvars = {};
var params = {};
var attributes = {id:'mainswf'};
swfobject.embedSWF(&quot;main.swf&quot;, &quot;container&quot;, &quot;100%&quot;, &quot;100%&quot;, &quot;9.0.115&quot;,&quot;expressInstall.swf&quot;, flashvars, params, attributes);
swffit.fit(&quot;mainswf&quot;, 960, 580);
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/0f0IosakjTw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/04/02/swfaddress-2-2-and-swfobject-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging SWFs within the browser</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/03/28/actionscript-debugging-within-the-browser/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/03/28/actionscript-debugging-within-the-browser/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:07:59 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=51</guid>
		<description><![CDATA[<p><a class="image" href="http://philipandrews.org/blog/wp-content/uploads/2009/03/picture-4.png" style="float:right;padding-left:20px;padding-bottom:20px;padding-top:20px;border:none"><img title="tail -f flashlog.txt" src="http://philipandrews.org/blog/wp-content/uploads/2009/03/picture-4.png" alt="tail -f flashlog.txt" width="180" height="150" /></a>If your anything like me use you use the trace statement feverishly when developing a flash project, the trace output is the available within the flash IDE and debugging is a straightfoward process. The problem I have found with using trace for debugging is when you move the project into a browser environment. I frequently find that the swf functions slightly different or there are bugs which cause the swf to silently die. There is however a great solution for&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p><a class="image" href="http://philipandrews.org/blog/wp-content/uploads/2009/03/picture-4.png" style="float:right;padding-left:20px;padding-bottom:20px;padding-top:20px;border:none"><img title="tail -f flashlog.txt" src="http://philipandrews.org/blog/wp-content/uploads/2009/03/picture-4.png" alt="tail -f flashlog.txt" width="180" height="150" /></a>If your anything like me use you use the trace statement feverishly when developing a flash project, the trace output is the available within the flash IDE and debugging is a straightfoward process. The problem I have found with using trace for debugging is when you move the project into a browser environment. I frequently find that the swf functions slightly different or there are bugs which cause the swf to silently die. There is however a great solution for viewing the trace statements from the browser.</p>
<p>First you&#8217;ll need to download and install flash debugger <a href="http://www.adobe.com/support/flashplayer/downloads.html">flash player 10 debugger</a>.</p>
<p>Create a file named “mm.cfg” ( if it does not exist) in one of the following locations:</p>
<ul>
<li>Windows; <code>C:Documents and Settings<em>username</em>mm.cfg</code></li>
<li>OSX; <code>/Library/Application Support/Macromedia/mm.cfg</code></li>
<li>Linux; <code>home/<em>username</em>/mm.cfg</code></li>
</ul>
<p>Open the newly created mm.cfg file in a text editor and add the following text:<br />
<code>ErrorReportingEnable=1<br />
TraceOutputFileEnable=1</code></p>
<p>Reboot your machine.</p>
<p>Browser debugging should be now enabled. All trace statements from any swf will be outputted to the file /Users/[username]/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt</p>
<p>Open a flash site, then look at the file and you&#8217;ll see all the traces coming from the swf.</p>
<p>Personally I find opening this file each time annoying so I use the tail -f command from the terminal so I can follow the file and see live trace outputs.</p>
<p><a href="http://philipandrews.org/blog/wp-content/uploads/2009/03/picture-4.png">tail -f /Users/phil/Library/Preferences/Macromedia/Flash Player/Logs/flashlog.txt</a></p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/-wMnAHiHqyQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/03/28/actionscript-debugging-within-the-browser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Sky is falling</title>
		<link>http://fatlinesofcode.philipandrews.org/2009/01/20/the-sky-is-falling/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2009/01/20/the-sky-is-falling/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 06:06:24 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[vancouver]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/2009/01/20/the-sky-is-falling/</guid>
		<description><![CDATA[<div style="text-align: left; padding: 3px;"><a class="image" title="photo sharing" href="http://farm4.static.flickr.com/3441/3214099955_f1076a03d1_o.jpg"><img style="border: solid 2px #FFFFFF;width:450px" src="http://farm4.static.flickr.com/3441/3214099955_121f13c781.jpg" alt="" /></a></p>
<p><span style="font-size: 0.8em; margin-top: 0px;font-style: italic;"><a href="http://www.flickr.com/photos/ghettophil/3214099955/">Vancouver Downtown</a>, originally uploaded by <a href="http://www.flickr.com/people/ghettophil/">philipandrews</a>.</span></p>
</div>
<p>Its offical, up is the new down. Apologies to whoever took this photo, it arrived via a chain email and I had to share it.<br />
I hear that <a href="http://en.wikipedia.org/wiki/Lando_Calrissian" target="_blank">Lando Calrissian</a> is going to be the new mayor.</p>
]]></description>
			<content:encoded><![CDATA[<div style="text-align: left; padding: 3px;"><a class="image" title="photo sharing" href="http://farm4.static.flickr.com/3441/3214099955_f1076a03d1_o.jpg"><img style="border: solid 2px #FFFFFF;width:450px" src="http://farm4.static.flickr.com/3441/3214099955_121f13c781.jpg" alt="" /></a></p>
<p><span style="font-size: 0.8em; margin-top: 0px;font-style: italic;"><a href="http://www.flickr.com/photos/ghettophil/3214099955/">Vancouver Downtown</a>, originally uploaded by <a href="http://www.flickr.com/people/ghettophil/">philipandrews</a>.</span></p>
</div>
<p>Its offical, up is the new down. Apologies to whoever took this photo, it arrived via a chain email and I had to share it.<br />
I hear that <a href="http://en.wikipedia.org/wiki/Lando_Calrissian" target="_blank">Lando Calrissian</a> is going to be the new mayor.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/0Q_uu0vS6i4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2009/01/20/the-sky-is-falling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Water droplet effect</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/11/20/water-droplet-effect/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/11/20/water-droplet-effect/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 07:54:26 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=44</guid>
		<description><![CDATA[<p><a class="image"  href="http://philipandrews.org/sandbox/displacement/rain.html" target="_blank"><img class="alignnone size-full wp-image-46" title="drops1" src="http://philipandrews.org/blog/wp-content/uploads/2008/11/drops1.jpg" alt="" style="border: solid 2px #FFFFFF;width:450px" width="440" height="325" /></a></p>
<p>This is an example of how to use the actionscript displacement filter and bitmapData to create a sliding water droplet effect.</p>
<p><a href="http://philipandrews.org/sandbox/displacement/rain.html" target="_blank">example here</a></p>
<p><a href="http://philipandrews.org/sandbox/displacement/">actionscript 3 source here</a></p>
]]></description>
			<content:encoded><![CDATA[<p><a class="image"  href="http://philipandrews.org/sandbox/displacement/rain.html" target="_blank"><img class="alignnone size-full wp-image-46" title="drops1" src="http://philipandrews.org/blog/wp-content/uploads/2008/11/drops1.jpg" alt="" style="border: solid 2px #FFFFFF;width:450px" width="440" height="325" /></a></p>
<p>This is an example of how to use the actionscript displacement filter and bitmapData to create a sliding water droplet effect.</p>
<p><a href="http://philipandrews.org/sandbox/displacement/rain.html" target="_blank">example here</a></p>
<p><a href="http://philipandrews.org/sandbox/displacement/">actionscript 3 source here</a></p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/1P9M2HfXYog" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/11/20/water-droplet-effect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash 3D models</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/09/16/flash-3d-models/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/09/16/flash-3d-models/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 05:33:59 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=40</guid>
		<description><![CDATA[<p style="text-align: center;"><a style="border:none" href="http://philipandrews.org/sandbox/3dmodel/3dmodel.html" target="_blank"><img class="aligncenter size-full wp-image-41" title="tank" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/tank.jpg" alt="" width="353" height="284" /></a></p>
I've been playing around with latest version of <a href="http://blog.papervision3d.org/">Papervision</a>. I found this great <a href="http://papervision2.com/loading-complex-models/">tutorial</a> on how to load Collada mesh models. Here is a little <a href="http://philipandrews.org/sandbox/3dmodel/3dmodel.html">swf</a> I mashed up. It uses 2 collada models but groups them together as one object with actionscript. <a href="http://code.google.com/p/tweener/">Tweener</a> is used to control the animation and mouse events. You view the AS source and DAE model files <a href="http://philipandrews.org/sandbox/3dmodel/">here</a>.]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a style="border:none" href="http://philipandrews.org/sandbox/3dmodel/3dmodel.html" target="_blank"><img class="aligncenter size-full wp-image-41" title="tank" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/tank.jpg" alt="" width="353" height="284" /></a></p>
<p>I&#8217;ve been playing around with latest version of <a href="http://blog.papervision3d.org/">Papervision</a>. I found this great <a href="http://papervision2.com/loading-complex-models/">tutorial</a> on how to load Collada mesh models. Here is a little <a href="http://philipandrews.org/sandbox/3dmodel/3dmodel.html">swf</a> I mashed up. It uses 2 collada models but groups them together as one object with actionscript. <a href="http://code.google.com/p/tweener/">Tweener</a> is used to control the animation and mouse events. You view the AS source and DAE model files <a href="http://philipandrews.org/sandbox/3dmodel/">here</a>.</p>
<p>
<object width="468" height="340">
<param name="movie" value="http://philipandrews.org/sandbox/3dmodel/3dmodel.swf"></param>
<param name="quality" value="high"></param>
<param name="wmode" value="window"></param>
<param name="menu" value="false"></param>
<param name="bgcolor" value="#000000"></param>
<param name="allowFullScreen" value="true"></param>
<embed type="application/x-shockwave-flash" width="468" height="340" src="http://philipandrews.org/sandbox/3dmodel/3dmodel.swf" quality="high" bgcolor="#000000" wmode="window" menu="false" allowFullScreen="true" ></embed>
</object>
</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/QADfh-VqlNs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/09/16/flash-3d-models/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BC tax calculator</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/09/07/bc-tax-calculator/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/09/07/bc-tax-calculator/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 01:59:38 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[vancouver]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=39</guid>
		<description><![CDATA[This is a simple tax calculator that I whipped together for calculating your  income after tax in BC, Canada. It should be useful for anyone that works on a contract or hourly rate. Please note this does not include CCP or employer insurance. Show me the money!]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" src="/js/mootools-1.2-core.js"></script></p>
<p><script type="text/javascript" src="/tax/Utilities.js"></script></p>
<p><script type="text/javascript" src="/tax/TaxRates.js"></script><br />
<script type="text/javascript" src="/tax/TaxCalc2.js"></script></p>
<style>
.taxcalculator table{width: 450px; font-size:13pt;margin-bottom:20px}
.taxcalculator table td{padding:0px 0px 10px 0px}
.taxcalculator input{width:50px; font-size:12pt}
</style>
<div class="taxcalculator">
<form action="rrspcatchupsummary.cfm" method="post">
<table border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<td></td>
<td>Year</td>
<td>Month</td>
<td>Week</td>
<td>Hour</td>
</tr>
</thead>
<tbody>
<tr>
<td>Taxable income</td>
<td>
<input id="incomeYear" onkeyup="setIncome(this)" type="text" /></td>
<td>
<input id="incomeMonth" onkeyup="setIncome(this)" type="text" /></td>
<td>
<input id="incomeWeek" onkeyup="setIncome(this)" type="text" /></td>
<td>
<input id="incomeHour" onkeyup="setIncome(this)" type="text" /></td>
</tr>
<tr id="results" style="display:none">
<td>After-Tax income</td>
<td id="resultYear"></td>
<td id="resultMonth"></td>
<td id="resultWeek"></td>
<td id="resultHour"></td>
</tr>
</tbody>
</table>
</form>
</div>
<p>This is a simple tax calculator that I whipped together for calculating your  income after tax in BC, Canada. It should be useful for anyone that works on a contract or hourly rate. Please note this does not include CCP or employer insurance. Show me the money!</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/mlkemKBZ_NY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/09/07/bc-tax-calculator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Paperskate 3D</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/09/06/paperskate-3d/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/09/06/paperskate-3d/#comments</comments>
		<pubDate>Sun, 07 Sep 2008 02:22:18 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[skateboarding]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=34</guid>
		<description><![CDATA[<p><a href="http://www.paperskate3d.com/" target="_blank"><img class="aligncenter size-full wp-image-35" title="paperskate" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/paperskate.jpg" alt="" width="440" height="289" /></a></p>
<p>(flash + skateboarding) * 3D = awesomeness</p>
<p>Checkout <a href="http://www.paperskate3d.com/">this</a> awesome little flash game built on papervision 3D. Its a very simple idea but pretty effective, lets hope he keeps the development going and takes it to the next stage. If I was this <a href="http://www.everydayflash.com/blog/index.php/2008/08/18/skateboard-simulator-papervision3d/">dude</a>, I&#8217;d try and market the idea to <a href="http://www.techdeck.com/">Tech Deck</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.paperskate3d.com/" target="_blank"><img class="aligncenter size-full wp-image-35" title="paperskate" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/paperskate.jpg" alt="" width="440" height="289" /></a></p>
<p>(flash + skateboarding) * 3D = awesomeness</p>
<p>Checkout <a href="http://www.paperskate3d.com/">this</a> awesome little flash game built on papervision 3D. Its a very simple idea but pretty effective, lets hope he keeps the development going and takes it to the next stage. If I was this <a href="http://www.everydayflash.com/blog/index.php/2008/08/18/skateboard-simulator-papervision3d/">dude</a>, I&#8217;d try and market the idea to <a href="http://www.techdeck.com/">Tech Deck</a>.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/okefavPL3ks" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/09/06/paperskate-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTube source svn</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/08/20/itube-source-svn/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/08/20/itube-source-svn/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 21:06:34 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[iTube]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=28</guid>
		<description><![CDATA[<p><a href="http://philipandrews.org/blog/itube"><img class="alignright size-full wp-image-29" style="float: right;margin-right:20px" title="resizesd" src="http://philipandrews.org/blog/wp-content/uploads/2008/08/resizesd.jpg" alt="" width="79" height="80" /></a>I have added the <a href="http://philipandrews.org/blog/itube">iTube</a> source files to <a href="http://code.google.com/p/itube-widget/source/checkout">googlecode svn</a>.</p>
<p>The current <a href="http://code.google.com/p/itube-widget/source/browse/trunk/">dev</a> version has a fullscreen and link to youtube page feature. I still haven&#8217;t been able to get the syncing feature to work. The widget crashes everytime I try and send the audio time to flash using SetVariable <img src='http://fatlinesofcode.philipandrews.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>If anyone is interesting in contributing to this project, let me know and I&#8217;ll add you as a member on <a href="http://code.google.com/p/itube-widget/">googlecode</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://philipandrews.org/blog/itube"><img class="alignright size-full wp-image-29" style="float: right;margin-right:20px" title="resizesd" src="http://philipandrews.org/blog/wp-content/uploads/2008/08/resizesd.jpg" alt="" width="79" height="80" /></a>I have added the <a href="http://philipandrews.org/blog/itube">iTube</a> source files to <a href="http://code.google.com/p/itube-widget/source/checkout">googlecode svn</a>.</p>
<p>The current <a href="http://code.google.com/p/itube-widget/source/browse/trunk/">dev</a> version has a fullscreen and link to youtube page feature. I still haven&#8217;t been able to get the syncing feature to work. The widget crashes everytime I try and send the audio time to flash using SetVariable <img src='http://fatlinesofcode.philipandrews.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>If anyone is interesting in contributing to this project, let me know and I&#8217;ll add you as a member on <a href="http://code.google.com/p/itube-widget/">googlecode</a>.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/NRBynRTFu4s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/08/20/itube-source-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New portfolio online</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/08/07/new-portfolio-online/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/08/07/new-portfolio-online/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 00:41:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=21</guid>
		<description><![CDATA[<p><a href="http://philipandrews.org/"><img class="alignnone size-full wp-image-22" style="border: 2px solid #ffffff; width: 450px;" title="portfolio 2008" src="http://philipandrews.org/blog/wp-content/uploads/2008/08/portfolio.jpg" alt="portfolio 2008" width="450" height="288" /></a></p>
<p>It amazing what you can accomplish when you don&#8217;t work. My new <a href="http://philipandrews.org/">portfolio</a> of selected flash and front-end development sites I have worked on over the past few years is now online. For all the geeks: there is a link to the actionscript 3 source. The link is in a not so obvious but logical place, have fun finding it.</p>
]]></description>
			<content:encoded><![CDATA[<p><a href="http://philipandrews.org/"><img class="alignnone size-full wp-image-22" style="border: 2px solid #ffffff; width: 450px;" title="portfolio 2008" src="http://philipandrews.org/blog/wp-content/uploads/2008/08/portfolio.jpg" alt="portfolio 2008" width="450" height="288" /></a></p>
<p>It amazing what you can accomplish when you don&#8217;t work. My new <a href="http://philipandrews.org/">portfolio</a> of selected flash and front-end development sites I have worked on over the past few years is now online. For all the geeks: there is a link to the actionscript 3 source. The link is in a not so obvious but logical place, have fun finding it.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/_iJU-Ygt-gw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/08/07/new-portfolio-online/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How stuff works: Vancouver</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/07/20/how-stuff-works-vancouver/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/07/20/how-stuff-works-vancouver/#comments</comments>
		<pubDate>Sun, 20 Jul 2008 17:46:54 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[vancouver]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=15</guid>
		<description><![CDATA[<p>I&#8217;ve just moved to Vancouver from Australia.  Before coming here I read guidebooks but there is always a bunch of stuff that you notice when you first move to a place that you would never read in books.  I&#8217;m not sure if these things are particular to Vancouver, Canada or North America, either way they are just weird.</p>
<ul>
<li>Car Rear indicator lights are red as opposed to amber in the all the countries I&#8217;ve been to</li>
<li>The front brake lever on a&#8230;</li></ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just moved to Vancouver from Australia.  Before coming here I read guidebooks but there is always a bunch of stuff that you notice when you first move to a place that you would never read in books.  I&#8217;m not sure if these things are particular to Vancouver, Canada or North America, either way they are just weird.</p>
<ul>
<li>Car Rear indicator lights are red as opposed to amber in the all the countries I&#8217;ve been to</li>
<li>The front brake lever on a bike is on the left and the rear break is on the right.</li>
<li>Some traffic lights flash when green, I still don&#8217;t know why this is.</li>
<li>There are no drivers on the skytrains. They must be operated by computer or remotely.</li>
<li>You have to pay for incoming calls on mobile phones.</li>
<li>Canadians dont know how to use round-abouts, most people stop in the middle of them.</li>
<li>Light switches go down for off and up for on.</li>
<li>The big liquor stores don&#8217;t sell cold beer.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/wwdoM5azIAo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/07/20/how-stuff-works-vancouver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New gears day.</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/07/11/whoosh/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/07/11/whoosh/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 01:46:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[bikes]]></category>
		<category><![CDATA[vancouver]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/2008/07/11/whoosh/</guid>
		<description><![CDATA[<div style="text-align: left; padding: 3px;"><a title="photo sharing" href="http://www.flickr.com/photos/ghettophil/sets/72157606110225748/"><img style="border: solid 2px #FFF;width:450px" src="http://farm4.static.flickr.com/3022/2659883294_5ab427018a.jpg" alt="" /></a><span style="font-size: 0.8em; margin-top: 0px;font-style: italic;"><a href="http://www.flickr.com/photos/ghettophil/2659883294/">Whoosh!</a>, originally uploaded by <a href="http://www.flickr.com/people/ghettophil/">phil</a>.</span></div>
<p>Apparently gears on bike just ain&#8217;t cool any more. Not wanting to be left out the funky bike gang, I picked up an old Raleigh 7-speed last weekend. I took it down to <a href="http://www.pedalpower.org/?q=our_community_bikes" target="_blank">Our community bikes</a> in East Vancouver, the bike mechanics down there are awesome. For about $10 a hour they showed me how to strip out the old components and convert the hub to a single speed. The bike flys now. Here is a summary of the&#8230;</p>]]></description>
			<content:encoded><![CDATA[<div style="text-align: left; padding: 3px;"><a title="photo sharing" href="http://www.flickr.com/photos/ghettophil/sets/72157606110225748/"><img style="border: solid 2px #FFF;width:450px" src="http://farm4.static.flickr.com/3022/2659883294_5ab427018a.jpg" alt="" /></a><br/><span style="font-size: 0.8em; margin-top: 0px;font-style: italic;"><a href="http://www.flickr.com/photos/ghettophil/2659883294/">Whoosh!</a>, originally uploaded by <a href="http://www.flickr.com/people/ghettophil/">phil</a>.</span></div>
<p>Apparently gears on bike just ain&#8217;t cool any more. Not wanting to be left out the funky bike gang, I picked up an old Raleigh 7-speed last weekend. I took it down to <a href="http://www.pedalpower.org/?q=our_community_bikes" target="_blank">Our community bikes</a> in East Vancouver, the bike mechanics down there are awesome. For about $10 a hour they showed me how to strip out the old components and convert the hub to a single speed. The bike flys now. Here is a summary of the work done.</p>
<ul>
<li>Overhauled and trued wheels.</li>
<li>New chain ring.</li>
<li>New single speed cog and spacer on hub.</li>
<li>Broke and shortened the chain.</li>
<li>New tires.</li>
<li>Removed rear brake.</li>
<li>Removed stand.</li>
<li>New red grip.</li>
<li>New seat.</li>
</ul>
<p>Check out the <a href="http://www.flickr.com/photos/ghettophil/sets/72157606110225748">before and after shots on flickr.</a></p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/K5f9gl07P74" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/07/11/whoosh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTube Widget for OS X</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/07/06/itube-widget-for-os-x/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/07/06/itube-widget-for-os-x/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 01:18:52 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[iTube]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=14</guid>
		<description><![CDATA[<p>I have released an OS X widget to search then play the music video to the song you are listening to in iTunes. Check the <a title="iTube" href="http://philipandrews.org/blog/itube">itube page for details</a>.</p>
]]></description>
			<content:encoded><![CDATA[<p>I have released an OS X widget to search then play the music video to the song you are listening to in iTunes. Check the <a title="iTube" href="http://philipandrews.org/blog/itube">itube page for details</a>.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/AQ2pQ1Ug6u4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/07/06/itube-widget-for-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EA Skate 2 Suggestions</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/07/03/ea-skate-2-suggestions/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/07/03/ea-skate-2-suggestions/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 07:17:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[skateboarding]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=7</guid>
		<description><![CDATA[<p><a href="http://philipandrews.org/blog/wp-content/uploads/2008/07/skate2_teaser_logo.jpg"><img class="alignnone size-medium wp-image-8 alignright" style="float: right;" title="skate2_teaser_logo" src="http://philipandrews.org/blog/wp-content/uploads/2008/07/skate2_teaser_logo.jpg" alt="" width="162" height="137" /></a></p>
<p>EA Skate rocks! Its by far the best skateboarding game since Tony Hawk 2. The feeling of control you get from the flick it system and the satisfaction of landing a hard trick mimic the feeling you get when landing your best trick whilst your really skating. I suck at real skating, so rather than put all my efforts into that I&#8217;m redirecting my skills towards making Skate 2 better.</p>
<ul>
<li>more skate styles eg Daewon song style and Stefan Jokanski 360 flips.</li>
<li>would be cool if&#8230;</li></ul>]]></description>
			<content:encoded><![CDATA[<p><a href="http://philipandrews.org/blog/wp-content/uploads/2008/07/skate2_teaser_logo.jpg"><img class="alignnone size-medium wp-image-8 alignright" style="float: right;" title="skate2_teaser_logo" src="http://philipandrews.org/blog/wp-content/uploads/2008/07/skate2_teaser_logo.jpg" alt="" width="162" height="137" /></a></p>
<p>EA Skate rocks! Its by far the best skateboarding game since Tony Hawk 2. The feeling of control you get from the flick it system and the satisfaction of landing a hard trick mimic the feeling you get when landing your best trick whilst your really skating. I suck at real skating, so rather than put all my efforts into that I&#8217;m redirecting my skills towards making Skate 2 better.</p>
<ul>
<li>more skate styles eg Daewon song style and Stefan Jokanski 360 flips.</li>
<li>would be cool if each trick had 3 different variances which you could purchase for your character. eg Daewon 360flips, Reynolds frontside sides, Kenny Reid 5-0s, Kosten backside noseblunts.</li>
<li>tweaking out flip tricks, maybe the higher you ollie or tweak button.</li>
<li>better co-ordinations between ollie and rotation, you should&#8217;nt be able to rotate once airborne. Would make frontside flip animations more effective, you&#8217;d have to time the rotation and ollie flip together. Not sure how this could work with steering. Ideally there should be different speeds of rotation so 360s have a different animation from 180s.</li>
<li>switch style, a slider variable in your character profile, the higher the variable the more the tricks and stance should look reversed.</li>
<li>more camera angles on replays and editing, fisheye and long lens views.</li>
<li>Real animations for jumping off the board to walk. Running and jumping onto the board animation.</li>
<li>Make your own skate video part. Collect footage and edit it.</li>
<li>Fisheye view.</li>
<li>Bails and kick out of tricks.</li>
</ul>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/tX2FVp3jdNU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/07/03/ea-skate-2-suggestions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Portfolio idea</title>
		<link>http://fatlinesofcode.philipandrews.org/2008/04/16/portfolio-idea/</link>
		<comments>http://fatlinesofcode.philipandrews.org/2008/04/16/portfolio-idea/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 03:06:17 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Flash blogs]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://philipandrews.org/blog/?p=36</guid>
		<description><![CDATA[<p style="text-align: center;"><a href="http://philipandrews.org/sandbox/3dcube/CUBES.html"><img class="aligncenter size-full wp-image-37" title="3dcube" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/3dcube.jpg" alt="" width="365" height="350" /></a></p>
<p>Here is an <a href="http://philipandrews.org/sandbox/3dcube/CUBES.html">idea</a> I had for a portfolio. It&#8217;s a 3D cube built in <a href="http://blog.papervision3d.org/">papervision</a> to view the websites screenshots. The result was a bit naff so I never developed it further. It was a fun use of Papervision3D and as3 though. Papervision is surprisingly easy. Source is <a href="http://philipandrews.org/sandbox/3dcube/CUBE3D.zip">here</a> for anyone that wants it.</p>
]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://philipandrews.org/sandbox/3dcube/CUBES.html"><img class="aligncenter size-full wp-image-37" title="3dcube" src="http://philipandrews.org/blog/wp-content/uploads/2008/09/3dcube.jpg" alt="" width="365" height="350" /></a></p>
<p>Here is an <a href="http://philipandrews.org/sandbox/3dcube/CUBES.html">idea</a> I had for a portfolio. It&#8217;s a 3D cube built in <a href="http://blog.papervision3d.org/">papervision</a> to view the websites screenshots. The result was a bit naff so I never developed it further. It was a fun use of Papervision3D and as3 though. Papervision is surprisingly easy. Source is <a href="http://philipandrews.org/sandbox/3dcube/CUBE3D.zip">here</a> for anyone that wants it.</p>
<img src="http://feeds.feedburner.com/~r/FatLinesOfCode/~4/pjgDXvbaNY0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://fatlinesofcode.philipandrews.org/2008/04/16/portfolio-idea/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
