<?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>GigglingCorpse</title>
	<atom:link href="http://www.gigglingcorpse.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.gigglingcorpse.com</link>
	<description>Fun for the whole family</description>
	<lastBuildDate>Sat, 05 Jun 2010 23:37:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>mini cards</title>
		<link>http://www.gigglingcorpse.com/?p=2487</link>
		<comments>http://www.gigglingcorpse.com/?p=2487#comments</comments>
		<pubDate>Sat, 05 Jun 2010 23:37:40 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2487</guid>
		<description><![CDATA[I designed a card for my sister. But they&#8217;re not your ordinary business cards, they&#8217;re mini. I didn&#8217;t even know that was an option! And they&#8217;re a good one for her: since they&#8217;re a different size, they&#8217;ll stand out amongst the other cards; they&#8217;re inexpensive, and allow her to print in small numbers; and you [...]]]></description>
			<content:encoded><![CDATA[<p>I designed a card for my sister.  </p>
<p>But they&#8217;re not your ordinary business cards, they&#8217;re <a href="http://us.moo.com/en/products/minicards.php">mini</a>.  I didn&#8217;t even know that was an option!</p>
<p>And they&#8217;re a good one for her: since they&#8217;re a different size, they&#8217;ll stand out amongst the other cards;  they&#8217;re inexpensive, and allow her to print in small numbers; and you can have different images on one side of the card.</p>
<p>I&#8217;m not sure about the print quality, but $20 isn&#8217;t too much to find out.</p>
<p>Here are the images, but they include the bleeds because I was too lazy to crop and re-save them.  There are 15 colour variations for the one side, and one shared information-side.</p>
<p>Text side:<br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/text-side.jpg" width="500" /></p>
<p>Image side:<br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-default.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-blue.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-black.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-dark_blue.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-dark_purple.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-gold.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-green.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-grey.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-orange.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-purple.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-red.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-reddish.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-yellow_brown.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-yellow_green.jpg" width="500" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/06/template-yellow_green2.jpg" width="500" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2487</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Codepaste 2 and Google Chrome: friends at last?</title>
		<link>http://www.gigglingcorpse.com/?p=2469</link>
		<comments>http://www.gigglingcorpse.com/?p=2469#comments</comments>
		<pubDate>Fri, 14 May 2010 19:16:46 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Codepaste]]></category>
		<category><![CDATA[Dev]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2469</guid>
		<description><![CDATA[Codepaste2 displays correctly in Chrome! Finally! In Opera, Safari, Firefox, and IE everything was great; in Chrome things went so very wrong: lines would wrap, lose opacity, and display behind themselves. Code was super difficult to read. But now it works! And, to be honest, I&#8217;m not sure why. I updated the version of EditArea [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://paste.alteredeffect.com">Codepaste2</a> displays correctly in Chrome!  Finally!</p>
<p>In Opera, Safari, Firefox, and IE everything was great; in Chrome things went so very wrong:  lines would wrap, lose opacity, and display behind themselves.  Code was super difficult to read.</p>
<p>But now it works!  And, to be honest, I&#8217;m not sure why.  I updated the version of <a href="http://www.cdolivet.com/index.php?page=editArea&#038;sess=a0ab03a1df17fd8666e9631236e9fb9f">EditArea</a> it uses, and didn&#8217;t see a change.  When I switched its <em>allow_resize</em> option from <em>both</em> to <em>y</em> everything magically got better. I was pretty happy.  But then I changed <em>y</em> back to <em>both</em> and things <em>didn&#8217;t</em> get worse, which left me confused and a little scared.</p>
<p>I hope the issue was resolved by updating EditArea, and all the confusion was caused by some weird caching issue.  Or maybe I forgot to refresh?</p>
<p><a href="http://paste.bradleygill.com">Codepaste v1</a> still gets heavier use than <a href="http://paste.alteredeffect.com">Codepaste v2</a>.  I wonder if that is by conscious decision, or if people just don&#8217;t know about Codepaste v2 and how much better it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2469</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Legend Painting business card design</title>
		<link>http://www.gigglingcorpse.com/?p=2454</link>
		<comments>http://www.gigglingcorpse.com/?p=2454#comments</comments>
		<pubDate>Mon, 15 Mar 2010 06:59:07 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2454</guid>
		<description><![CDATA[I had such difficulty designing business cards for Legend Painting. Nothing worked, and man, was that frustrating? It was so frustrating. But I finally came up with one design that I actually like! (And some others that were okay) Here it is in my card viewer: google.load("swfobject", "2.1"); google.setOnLoadCallback( function() { var flashvars = {config: [...]]]></description>
			<content:encoded><![CDATA[<p>I had such difficulty designing business cards for <a href="http://www.legendpainting.com">Legend Painting</a>.  Nothing worked, and man, was that frustrating? It was so frustrating.<br />
But I finally came up with one design that I actually like! (And some others that were okay)</p>
<p>Here it is in my card viewer:<br />
<script src="http://www.google.com/jsapi" type="text/javascript"></script><script>
google.load("swfobject", "2.1");
google.setOnLoadCallback(
	function() {
                var flashvars = {config: 'http://www.gigglingcorpse.com/cards/legend/config.xml' };
                swfobject.embedSWF("http://www.gigglingcorpse.com/cards/BusinessCard.swf", "card14032010", "500", "300", "10.0.0", false, flashvars, {}, {});
});
</script><br />
<center><small>( click to flip )</small></center></p>
<div id="card14032010"></div>
<p>Or, in images, if you hate flash:<br />
<img src="http://www.gigglingcorpse.com/cards/legend/legend-cards-001.jpg" style="float: left; margin-top: 17px;" /><br />
<img src="http://www.gigglingcorpse.com/cards/legend/legend-cards-002.jpg" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2454</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some new logos</title>
		<link>http://www.gigglingcorpse.com/?p=2441</link>
		<comments>http://www.gigglingcorpse.com/?p=2441#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:18:10 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2441</guid>
		<description><![CDATA[I recently designed some logos for Legend Painting, and Best Home Product Distributors. The more prominent versions are the ones that were selected, and the smaller ones below are some alternate options I provided.]]></description>
			<content:encoded><![CDATA[<p>I recently designed some logos for <strong>Legend Painting</strong>, and <strong>Best Home Product Distributors</strong>.<br />
<img src="http://gigglingcorpse.com/wp-content/uploads/2010/03/legend-logos.png" class="soft centred" /></p>
<p>The more prominent versions are the ones that were selected, and the smaller ones below are some alternate options I provided.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2441</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save the date</title>
		<link>http://www.gigglingcorpse.com/?p=2421</link>
		<comments>http://www.gigglingcorpse.com/?p=2421#comments</comments>
		<pubDate>Fri, 12 Feb 2010 00:57:28 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Art]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Illustration]]></category>
		<category><![CDATA[Medwards]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2421</guid>
		<description><![CDATA[Apparently it&#8217;s a thing! News to me, but what do I know about weddings? Very, very little is what I know about weddings! I did two save-the-date designs for Matt and Erin. They are getting married, not sure if you knew. The wedding&#8217;s theme is wine (the red colour), accented by a green &#8211; which [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently it&#8217;s a thing!  News to me, but what do I know about weddings? Very, very little is what I know about weddings!</p>
<p>I did two save-the-date designs for Matt and Erin.  They are getting married, not sure if you knew.  </p>
<p><img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/02/m001.jpg" width="500" class="centred" /><br />
<img src="http://www.gigglingcorpse.com/wp-content/uploads/2010/02/m002.jpg" width="500" class="centred" /></p>
<p>The wedding&#8217;s theme is wine (the red colour), accented by a green &#8211; which is hopefully similar to the green I used!  </p>
<p>The first one is my favourite.  That lily took a long time to illustrate.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2421</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Counter example!</title>
		<link>http://www.gigglingcorpse.com/?p=2409</link>
		<comments>http://www.gigglingcorpse.com/?p=2409#comments</comments>
		<pubDate>Mon, 14 Dec 2009 12:38:48 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Bradicon!]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Karl]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2409</guid>
		<description><![CDATA[So there&#8217;s this website that let&#8217;s you convert regular image files into icons. You&#8217;ve probably seen it before, maybe used it once or twice. It has a donate button, which allows donations by way of Paypal. That button is there for one reason, and one reason only: to prove Karl wrong. You see, he once [...]]]></description>
			<content:encoded><![CDATA[<p>So there&#8217;s this website that let&#8217;s you <a href="http://ico.bradleygill.com">convert regular image files into icons</a>.  You&#8217;ve probably seen it before, maybe used it once or twice.  It has a donate button, which allows donations by way of Paypal.  That button is there for one reason, and one reason only: <em>to prove Karl wrong.</em></p>
<p>You see, he once posited that no one ever donates.  And now, finally, after all six of these months and 100978 icon conversions, someone has.  An entire American(USD) cent, and all the way from Italy.  I mean sure, it may have been a mistake.  I might even concede that it probably was a mistake.  Either way, it&#8217;s a counter example!</p>
<p>Theory disproven.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2409</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tic Tac Whatsit</title>
		<link>http://www.gigglingcorpse.com/?p=2361</link>
		<comments>http://www.gigglingcorpse.com/?p=2361#comments</comments>
		<pubDate>Tue, 08 Dec 2009 20:32:45 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[being helpful to people less experienced than myself in the ways of the world; mostly in the ways of the web actually]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2361</guid>
		<description><![CDATA[Long days ago I spoke with a dentist of game demos, and of a festival dedicated to those. We talked of Ticktacktoe, a classic game of boxes and shapes &#8211; a boring, beatable game, but an easy one to program. It&#8217;d be easy to program, right? We could probably make one with flash in less [...]]]></description>
			<content:encoded><![CDATA[<p>Long days ago I spoke with a dentist of game demos, and of a festival dedicated to those.  We talked of Ticktacktoe, a classic game of boxes and shapes &#8211; a boring, beatable game, but an easy one to program.<br />
It&#8217;d be easy to program, right?  We could probably make one with flash in less than thirty minutes, couldn&#8217;t we? <em> At least one way to find out!</em></p>
<p>Yup.  Sure could!</p>
<p><script src="http://www.google.com/jsapi" type="text/javascript"></script><script>
google.load("swfobject", "2.1");
google.setOnLoadCallback(
	function() {
                swfobject.embedSWF("examples/tictacwhatsit.swf", "tictac534", "330", "280", "10.0.0");
});
</script></p>
<div style="width: 330px;margin-left:auto;margin-right:auto; margin-bottom: 20px;">
<div id="tictac534"></div>
</div>
<p>Ticktacwhatsit is made up of nine (9) blocks, and each can be either <strong>blank</strong>, an <strong>X</strong>, or an <strong>O</strong>.  That&#8217;s so easy to represent in flash!  </p>
<p>I started by making a symbol called called <em>block</em> which had two layers and three keyframes on one layer: blank, X, and O.  On the other layer, i added the action <em>stop();</em> to prevent it from flipping through the frames.</p>
<p>I dragged 9 instances of <em>block</em> onto the stage, and arranged them into a game board (named them in sequence) &#8211; and drew some lines between them.</p>
<p>And then I wrote the game code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> boxes:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span> b0, b1, b2, b3, b4, b5, b6, b7, b8 <span style="color: #66cc66;">&#93;</span>;
<span style="color: #000000; font-weight: bold;">var</span> nextSymbol:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">0</span>;
&nbsp;
removeChild<span style="color: #66cc66;">&#40;</span> done <span style="color: #66cc66;">&#41;</span>;
done.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'go_again'</span>, restart <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> restart<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>:Event <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	nextSymbol = <span style="color: #cc66cc;">0</span>;
	<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> boxes.<span style="color: #0066CC;">length</span>; i++ <span style="color: #66cc66;">&#41;</span> 
		boxes<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>;
	removeChild<span style="color: #66cc66;">&#40;</span> done <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> boxes.<span style="color: #0066CC;">length</span>; i++ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	boxes<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span> MouseEvent.<span style="color: #006600;">CLICK</span>, onClick <span style="color: #66cc66;">&#41;</span>;
	boxes<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">buttonMode</span> = <span style="color: #000000; font-weight: bold;">true</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> onClick<span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>:MouseEvent <span style="color: #66cc66;">&#41;</span> : <span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #006600;">currentFrame</span> == <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">e</span>.<span style="color: #006600;">currentTarget</span>.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span> nextSymbol+<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> checkGame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'won!'</span> <span style="color: #66cc66;">&#41;</span>;
			done.<span style="color: #0066CC;">gotoAndStop</span><span style="color: #66cc66;">&#40;</span> nextSymbol + <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>;
			addChild<span style="color: #66cc66;">&#40;</span> done <span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
		nextSymbol = <span style="color: #66cc66;">&#40;</span>nextSymbol+<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">%</span>2;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> checkGame<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> t:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>; t <span style="color: #66cc66;">&lt;</span> possible.<span style="color: #0066CC;">length</span>; t++ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">var</span> val:<span style="color: #0066CC;">int</span> = boxes<span style="color: #66cc66;">&#91;</span>possible<span style="color: #66cc66;">&#91;</span>t<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">currentFrame</span>;
		<span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>=<span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> possible<span style="color: #66cc66;">&#91;</span>t<span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">length</span>; i++ <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> boxes<span style="color: #66cc66;">&#91;</span>possible<span style="color: #66cc66;">&#91;</span>t<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #006600;">currentFrame</span> <span style="color: #66cc66;">!</span>= val <span style="color: #66cc66;">||</span> val == <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>
				<span style="color: #b1b100;">break</span>;
			<span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> i == <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">&#41;</span>
				<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">true</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000000; font-weight: bold;">false</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> possible:<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span>
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">&#93;</span>,
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">5</span> <span style="color: #66cc66;">&#93;</span>,
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">6</span>, <span style="color: #cc66cc;">7</span>, <span style="color: #cc66cc;">8</span> <span style="color: #66cc66;">&#93;</span>,
&nbsp;
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">3</span>, <span style="color: #cc66cc;">6</span> <span style="color: #66cc66;">&#93;</span>,
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">1</span>, <span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">7</span> <span style="color: #66cc66;">&#93;</span>,
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">5</span>, <span style="color: #cc66cc;">8</span> <span style="color: #66cc66;">&#93;</span>,
&nbsp;
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">8</span> <span style="color: #66cc66;">&#93;</span>,
		<span style="color: #66cc66;">&#91;</span> <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">4</span>, <span style="color: #cc66cc;">6</span> <span style="color: #66cc66;">&#93;</span>
	<span style="color: #66cc66;">&#93;</span>;</pre></td></tr></table></div>

<p>So the main idea is that we have a bunch of boxes and whenever one of them gets clicked, we may have to do something.  I added each of the boxes to an array (line 1), so I could easily loop through them all (line 14), and set the <em>buttonMode </em> and add an <em>onClick </em>event handler to each.  A <strong>true </strong><em>buttonMode </em>tells flash to display the little hand when you mouseover the object.</p>
<p>The main processing is done whenever you click a block, and the <em>onClick </em>event handler starts on line 20.  That&#8217;s really all there is to the game, the rest of the stuff are just extras.</p>
<p>The mouse event is passed as a param to the event handler.  Its <em>currentTarget </em>property represents the object clicked, which in this case is one of the blocks.<br />
The first test to do on that block is see if it&#8217;s empty.  If it&#8217;s not empty, there&#8217;s nothing for us to do.<br />
A block is empty if it is still on its first frame, which is where <em>currentFrame </em>comes in.  If it&#8217;s not on its first frame it&#8217;s either an <strong>X </strong>(frame 2) or an <strong>O </strong>(frame 3).</p>
<p>If it is empty, I need to either fill it with an X or an O, whichever <em>wasn&#8217;t</em> used last.  For this, I have the <em>nextSymbol </em>variable, which is only ever either a 0(X) or a 1(O).  I set the block using its <em>gotoAndStop</em> function, passing it the frame we wish it to change to.</p>
<p>After that, I just check if a player has won!<br />
I was pretty lazy about checking; I made a list of every possible victory combination (line 46), and check each of those (line 32) to ensure all the squares in each aren&#8217;t on the same frame, or on frame 1 (line 36).</p>
<p>Done!  </p>
<p>Line 28:  I wonder why I did nextSymbol = ( nextSymbol + 1 ) % 2; instead of nextSymbol ^= 1;  Laziness?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2361</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thursday is for squash</title>
		<link>http://www.gigglingcorpse.com/?p=2358</link>
		<comments>http://www.gigglingcorpse.com/?p=2358#comments</comments>
		<pubDate>Fri, 06 Nov 2009 19:51:16 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2358</guid>
		<description><![CDATA[At least in theory. It didn&#8217;t work out. I came by one of those recently printed Poseidon Plumbing business cards! I like them TBH. I am happy with them.]]></description>
			<content:encoded><![CDATA[<p>At least in theory.  It didn&#8217;t work out.<br />
I came by one of those recently printed <a href="http://www.gigglingcorpse.com/?p=2278">Poseidon Plumbing business cards</a>!  I like them TBH.<br />
I am happy with them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2358</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newspaper ads</title>
		<link>http://www.gigglingcorpse.com/?p=2338</link>
		<comments>http://www.gigglingcorpse.com/?p=2338#comments</comments>
		<pubDate>Tue, 03 Nov 2009 11:59:56 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2338</guid>
		<description><![CDATA[It&#8217;s mysterious lack-of-website aside, Altered Effect is quickly becoming a design company. Which is cool! Design can be fun &#8211; and, you know&#8230; suspenseful. Clients are definitely clients, but like many I suffer an urge toward diversity in task. Am I traveling toward a lopsided portfolio, if ever one exists? Will I lose credibility when [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s mysterious lack-of-website aside, <a href="http://www.alteredeffect.com">Altered Effect</a> is quickly becoming a design company.  Which is cool!  Design can be fun &#8211; and, you know&#8230; suspenseful.<br />
Clients are definitely clients, but like many I suffer an urge toward diversity in task.  </p>
<p>Am I traveling toward a lopsided portfolio, if ever one exists?  Will I lose credibility when it comes to programming complex web-systems and sweet interfaces?  It could happen &#8211; though, frankly, I doubt it.<br />
It would surprise me if many noticed or cared.  Still, it&#8217;s time to get more programming contracts if I can figure out how.</p>
<p>That being said (up above, in case you missed it), I am very confident in my ability to program, less so to design.  So all this design is hopefully a good sign!</p>
<p><img src="wp-content/uploads/2009/11/dr.steph-tsang-newspaper-ad.jpg" alt="Dr. Stephanie Tsang newspaper advertisement design" class="centred" /></p>
<p>Above is a newspaper ad for Dr. Stephanie Tsang of <a href="http://www.abbydentist.com">Tsang Dentistry</a>.  It still needs some work (I&#8217;ve only recently altered the layout, and need to play around with it a bit) but that should be pretty much it.  Hopefully it is clean and clear, and attracts the eye in print.  I&#8217;ve never designed anything for a newspaper before and can&#8217;t be sure what it will look like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2338</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More Tsang dentistry</title>
		<link>http://www.gigglingcorpse.com/?p=2326</link>
		<comments>http://www.gigglingcorpse.com/?p=2326#comments</comments>
		<pubDate>Wed, 14 Oct 2009 07:40:12 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.gigglingcorpse.com/?p=2326</guid>
		<description><![CDATA[I did some revised logos for Tsang Dentisry (didn&#8217;t make the website, again): And placed two on what I think will be the final version of the banner: That tooth means business, IMO.]]></description>
			<content:encoded><![CDATA[<p>I did some revised logos for <a href="http://www.abbydentist.com">Tsang Dentisry</a> (didn&#8217;t make the website, again):<br />
<img src="wp-content/uploads/2009/10/tsanglogos.jpg" class="soft centred" /></p>
<p>And placed two on what I <em>think</em> will be the final version of the banner:</p>
<p><img src="wp-content/uploads/2009/10/tsangbanner11-small.jpg" class="centred" /><br />
<img src="wp-content/uploads/2009/10/tsangbanner11b-small.jpg" class="centred" /></p>
<p>That tooth means business, IMO.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gigglingcorpse.com/?feed=rss2&amp;p=2326</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
