<?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"
	>

<channel>
	<title>gotoAndBlog();</title>
	<atom:link href="http://www.gotoandblog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gotoandblog.com</link>
	<description>A blog about Flash games, Flash animations, Flash tutorials and Flash websites</description>
	<pubDate>Thu, 09 Jul 2009 06:01:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>gotoAndBlog - Blogging Hiatus</title>
		<link>http://www.gotoandblog.com/2009/07/gotoandblog-blogging-hiatus/</link>
		<comments>http://www.gotoandblog.com/2009/07/gotoandblog-blogging-hiatus/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 06:01:17 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[gotoAndBlog();]]></category>

		<category><![CDATA[Blogging]]></category>

		<category><![CDATA[boyinaband]]></category>

		<category><![CDATA[david paul brown]]></category>

		<category><![CDATA[hiatus]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=51</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2009/07/gotoandblog-blogging-hiatus/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'gotoAndBlog - Blogging Hiatus';
digg_bodytext = 'Hey+guys%21%0AI+haven%26%238217%3Bt+been+posting+on+gotoAndBlog+lately+because+I%26%238217%3Bve+been+concentrating+my+efforts+on+my+electronic+music+blog+boyinaband+instead....';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Hey guys!
I haven&#8217;t been posting on gotoAndBlog lately because I&#8217;ve been concentrating my efforts on my electronic music blog boyinaband instead.
My plan is to get that off the ground as a strong community of musicians wishing to learn and improve their abilities, then once that is substantial enough I hope to return here and turn [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2009/07/gotoandblog-blogging-hiatus/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'gotoAndBlog - Blogging Hiatus';
digg_bodytext = 'Hey+guys%21%0AI+haven%26%238217%3Bt+been+posting+on+gotoAndBlog+lately+because+I%26%238217%3Bve+been+concentrating+my+efforts+on+my+electronic+music+blog+boyinaband+instead....';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Hey guys!</p>
<p>I haven&#8217;t been posting on gotoAndBlog lately because I&#8217;ve been concentrating my efforts on my <a href="http://www.boyinaband.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.boyinaband.com');">electronic music blog</a> boyinaband instead.</p>
<p>My plan is to get that off the ground as a strong community of musicians wishing to learn and improve their abilities, then once that is substantial enough I hope to return here and turn gotoAndBlog into the Flash Blog it was always meant to be!</p>
<p>Also, check out my personal blog <a href="http://www.davidpaulbrown.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.davidpaulbrown.com');">www.davidpaulbrown.com</a> if you&#8217;re interested in my progress with boyinaband!</p>
<p>Take it easy! <img src='http://www.gotoandblog.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2009/07/gotoandblog-blogging-hiatus/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Why flash is the best platform to develop Web Apps and Games.</title>
		<link>http://www.gotoandblog.com/2008/11/why-flash-is-the-best-platform-to-develop-web-apps-and-games/</link>
		<comments>http://www.gotoandblog.com/2008/11/why-flash-is-the-best-platform-to-develop-web-apps-and-games/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 16:37:23 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[General Flash]]></category>

		<category><![CDATA[adobe]]></category>

		<category><![CDATA[census]]></category>

		<category><![CDATA[consensus]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[game]]></category>

		<category><![CDATA[internet]]></category>

		<category><![CDATA[jagex]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[mmo]]></category>

		<category><![CDATA[platform]]></category>

		<category><![CDATA[runescape]]></category>

		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=50</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/11/why-flash-is-the-best-platform-to-develop-web-apps-and-games/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Why flash is the best platform to develop Web Apps and Games.';
digg_bodytext = 'Okay%2C+there+are+a+ton+of+reasons+to+choose+a+platform+for+writing+a+program%2C+but+this+one+is+the+reason+Flash+is+numero+uno+when+it+comes+to+Internet+Applications%26%238230%3B%0A';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Okay, there are a ton of reasons to choose a platform for writing a program, but this one is the reason Flash is numero uno when it comes to Internet Applications&#8230;











Check out this link:   http://www.adobe.com/products/player_census/flashplayer/
99% of the internet have flash.   Woah.   The internet is pretty big, and considering the [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/11/why-flash-is-the-best-platform-to-develop-web-apps-and-games/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Why flash is the best platform to develop Web Apps and Games.';
digg_bodytext = 'Okay%2C+there+are+a+ton+of+reasons+to+choose+a+platform+for+writing+a+program%2C+but+this+one+is+the+reason+Flash+is+numero+uno+when+it+comes+to+Internet+Applications%26%238230%3B%0A';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Okay, there are a ton of reasons to choose a platform for writing a program, but this one is the reason Flash is numero uno when it comes to Internet Applications&#8230;</p>
<p><span id="more-50"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>Check out this link:   http://www.adobe.com/products/player_census/flashplayer/</p>
<p>99% of the internet have flash.   Woah.   The internet is pretty big, and considering the next largest platform, java, only has 82%, that&#8217;s 17% more of the internet that can play your game or use your application if you have made it in Flash.   So - unless you are Jagex and can somehow pull millions to download java just to play your MMO, and it seems Runescape is the exception and not the rule on this one, then Flash is definately the way to go.</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/11/why-flash-is-the-best-platform-to-develop-web-apps-and-games/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash don&#8217;t got no rhythm! - Making an accurate Tempo system with actionscript</title>
		<link>http://www.gotoandblog.com/2008/11/flash-dont-got-no-rhythm-making-an-accurate-tempo-system-with-actionscript/</link>
		<comments>http://www.gotoandblog.com/2008/11/flash-dont-got-no-rhythm-making-an-accurate-tempo-system-with-actionscript/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 21:05:38 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Games]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[2]]></category>

		<category><![CDATA[3]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[array]]></category>

		<category><![CDATA[audio]]></category>

		<category><![CDATA[cs3]]></category>

		<category><![CDATA[cs4]]></category>

		<category><![CDATA[duration]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[loop]]></category>

		<category><![CDATA[music]]></category>

		<category><![CDATA[mx]]></category>

		<category><![CDATA[sequencer]]></category>

		<category><![CDATA[sound]]></category>

		<category><![CDATA[sound.position]]></category>

		<category><![CDATA[system]]></category>

		<category><![CDATA[tempo]]></category>

		<category><![CDATA[trigger]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=49</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/11/flash-dont-got-no-rhythm-making-an-accurate-tempo-system-with-actionscript/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Flash don&#8217;t got no rhythm! - Making an accurate Tempo system with actionscript';
digg_bodytext = 'I+have+been+working+on+a+rhythm+game+that+combines+sequencing+with+looping+and+I+have+to+say+that+flash+is+one+of+the+most+rhythmically+challenged+things+I%26%238217%3Bve+ever+come+into+contact+with%2C+including...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
I have been working on a rhythm game that combines sequencing with looping and I have to say that flash is one of the most rhythmically challenged things I&#8217;ve ever come into contact with, including the drummer from my first band&#8230; but I have found some ways around it!











My initial idea was to trigger a [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/11/flash-dont-got-no-rhythm-making-an-accurate-tempo-system-with-actionscript/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Flash don&#8217;t got no rhythm! - Making an accurate Tempo system with actionscript';
digg_bodytext = 'I+have+been+working+on+a+rhythm+game+that+combines+sequencing+with+looping+and+I+have+to+say+that+flash+is+one+of+the+most+rhythmically+challenged+things+I%26%238217%3Bve+ever+come+into+contact+with%2C+including...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>I have been working on a rhythm game that combines sequencing with looping and I have to say that flash is one of the most rhythmically challenged things I&#8217;ve ever come into contact with, including the drummer from my first band&#8230; but I have found some ways around it!</p>
<p><span id="more-49"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>My initial idea was to trigger a sound with the sound.start(); function every time a loop finished, but since Flash is less than perfect, it introduces a random length gap just long enough to cause a problem, meaning the loops are not seamless, as it has to do some calculating before it plays the loop again.</p>
<p>So this has led me to my new method - I have used actionscript to split the 4 bar loop into 8 half notes.  I took the sound.duration() value, divided it by 8 (for the half notes), and stored each multiple of the note in an array.   Each frame I check the array, and if the sound.position() value is plus or minus a margin of error close to any of those multiples, it must be on the beat - then I can tell it to do things.</p>
<p>Though this is still not perfect - I am at current refining this method, but thought I&#8217;d share it with the rest of the internet!</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><em>Any other suggestions as to how to keep flash in time?   Share them with a comment below!</em></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/11/flash-dont-got-no-rhythm-making-an-accurate-tempo-system-with-actionscript/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Coding Flash Tower Defence Games - Pathfinding or Waypoints?</title>
		<link>http://www.gotoandblog.com/2008/10/coding-flash-tower-defence-games-pathfinding-or-waypoints/</link>
		<comments>http://www.gotoandblog.com/2008/10/coding-flash-tower-defence-games-pathfinding-or-waypoints/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:27:19 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Games]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[algorithm]]></category>

		<category><![CDATA[coding]]></category>

		<category><![CDATA[cs3]]></category>

		<category><![CDATA[defence]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[flash element]]></category>

		<category><![CDATA[function]]></category>

		<category><![CDATA[pathfinding]]></category>

		<category><![CDATA[protector]]></category>

		<category><![CDATA[td]]></category>

		<category><![CDATA[tower defense]]></category>

		<category><![CDATA[waypoint]]></category>

		<category><![CDATA[xeno tactic]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=48</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/10/coding-flash-tower-defence-games-pathfinding-or-waypoints/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Coding Flash Tower Defence Games - Pathfinding or Waypoints?';
digg_bodytext = 'When+it+comes+to+programming+a+tower+defence+game%2C+you+have+a+choice+to+make+%28Well%2C+you+have+loads+of+choices%2C+but+this+is+a+pretty+big+one%29+-+Should+I+use+a+pathfinding+algorithm+to+give+the+enemies...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
When it comes to programming a tower defence game, you have a choice to make (Well, you have loads of choices, but this is a pretty big one) - Should I use a pathfinding algorithm to give the enemies their sense of direction, or pre-program in a set of Waypoints?   Let&#8217;s see what the good [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/10/coding-flash-tower-defence-games-pathfinding-or-waypoints/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Coding Flash Tower Defence Games - Pathfinding or Waypoints?';
digg_bodytext = 'When+it+comes+to+programming+a+tower+defence+game%2C+you+have+a+choice+to+make+%28Well%2C+you+have+loads+of+choices%2C+but+this+is+a+pretty+big+one%29+-+Should+I+use+a+pathfinding+algorithm+to+give+the+enemies...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>When it comes to programming a tower defence game, you have a choice to make (Well, you have loads of choices, but this is a pretty big one) - Should I use a pathfinding algorithm to give the enemies their sense of direction, or pre-program in a set of Waypoints?   Let&#8217;s see what the good and bad points of each method are&#8230;</p>
<p><span id="more-48"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><strong><span style="text-decoration: underline;">Pathfinding</span></strong></p>
<p>Pathfinding algorithms will mean that the enemy can dynamically change its path depending on the level layout - for example, if you build a wall then it will go around it, meaning some more interesting tactical gameplay can be created!   Take Xeno Tactic for an example - this game involves making mazes of towers to maximise damage done to enemies, something that would only be possible with a pathfinding algorithm!</p>
<p>However, it&#8217;s not all peaches and cream.   The pathfinding algorithm is costly processor-wise.   Running the algorithm each time the map is updated on every enemy on screen can cause a LOT of slowdown.   And with a game genre such as tower defence, it can get busy on screen!</p>
<p><strong><span style="text-decoration: underline;">Waypoints</span></strong></p>
<p>Waypoints mean pre-defining where the enemies will go - following a set path from the start to the finish.   Games such as Flash Element td and Protector use this method, and it allows you to do things like make the enemies go in circles around an area more than once instead of straight to the exit.   It is also a lot less processing - the enemies have a set path and do not veer off it.   Sorted.   More processing time for some pretty particle graphics =D</p>
<p>&#8230;But means that nothing can be placed in their way, else they&#8217;re just going to walk into it and the game would be a little bit easier than intended!   The gameplay will undoubtedly be simpler than if you can alter the path the enemies go.</p>
<p><strong><span style="text-decoration: underline;">Overall</span></strong></p>
<p>It comes down to what you want.   If you want a strategic game with tactical choices and dynamic, intelligent senemies then pathfinding is the way to go.   If you want a simple start-to-finish Tower Defense game that runs fast, then waypoints are the future for you.   Maybe a combination of both is possible in larger levels, where the enemy finds the path between certain waypoints only, meaning less processing and more tactical choice (and more coding for you, you lucky ducky!)</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><em>Any other advice when it comes to coding tower defence games?   Share it with us in a comment below!</em></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/10/coding-flash-tower-defence-games-pathfinding-or-waypoints/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tutorials for 5 different Flash game genres</title>
		<link>http://www.gotoandblog.com/2008/10/tutorials-for-5-different-flash-game-genres/</link>
		<comments>http://www.gotoandblog.com/2008/10/tutorials-for-5-different-flash-game-genres/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 09:16:27 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Games]]></category>

		<category><![CDATA[Tutorial]]></category>

		<category><![CDATA[2]]></category>

		<category><![CDATA[3]]></category>

		<category><![CDATA[action script]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[as2]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[beat em up]]></category>

		<category><![CDATA[cs3]]></category>

		<category><![CDATA[defense]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[game]]></category>

		<category><![CDATA[mx]]></category>

		<category><![CDATA[platform]]></category>

		<category><![CDATA[platformer]]></category>

		<category><![CDATA[rhythm]]></category>

		<category><![CDATA[scrolling]]></category>

		<category><![CDATA[shoot em up]]></category>

		<category><![CDATA[strategy]]></category>

		<category><![CDATA[streets of rage]]></category>

		<category><![CDATA[tower]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=47</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/10/tutorials-for-5-different-flash-game-genres/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorials for 5 different Flash game genres';
digg_bodytext = 'Tower+Defense%2C+Rhythm+game%2C+scrolling+beat+%26%238216%3Bem+up%2C+platformer+and+shoot+%26%238216%3Bem+up.%C2%A0%C2%A0+It%26%238217%3Bs+all+here+folks%21%0A%0A%0A...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Tower Defense, Rhythm game, scrolling beat &#8216;em up, platformer and shoot &#8216;em up.   It&#8217;s all here folks!











Tower Defense Game Tutorial (E.g. Xeno Tactic):
http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/
Rhythm Game Tutorial (E.g. Flash Flash Revolution): 
http://www.mrsunstudios.com/2008/08/tutorial-make-a-rhythm-game-in-as2/
Scrolling beat &#8216;em up (E.g. Streets of Rage):

http://www.gotoandplay.it/_articles/2006/06/beatemup.php
Platformer (E.g. Sonic the Hedgehog):

http://www.kirupa.com/developer/mx2004/platform_game.htm
Shoot &#8216;em up (E.g. That &#8220;kill the teletubbies&#8221; game):

http://www.sitepoint.com/article/shoot-em-up-game-flash-mx/
They are taylored for different versions of [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/10/tutorials-for-5-different-flash-game-genres/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorials for 5 different Flash game genres';
digg_bodytext = 'Tower+Defense%2C+Rhythm+game%2C+scrolling+beat+%26%238216%3Bem+up%2C+platformer+and+shoot+%26%238216%3Bem+up.%C2%A0%C2%A0+It%26%238217%3Bs+all+here+folks%21%0A%0A%0A...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Tower Defense, Rhythm game, scrolling beat &#8216;em up, platformer and shoot &#8216;em up.   It&#8217;s all here folks!</p>
<p><span id="more-47"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><strong>Tower Defense Game Tutorial (E.g. Xeno Tactic):</strong></p>
<p><a href="http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/');" target="_blank">http://www.emanueleferonato.com/2007/10/06/make-a-flash-game-like-flash-element-tower-defense-part-1/</a></p>
<p><strong>Rhythm Game Tutorial (E.g. Flash Flash Revolution): </strong></p>
<p><a href="http://www.mrsunstudios.com/2008/08/tutorial-make-a-rhythm-game-in-as2/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.mrsunstudios.com/2008/08/tutorial-make-a-rhythm-game-in-as2/');" target="_blank">http://www.mrsunstudios.com/2008/08/tutorial-make-a-rhythm-game-in-as2/</a></p>
<p><strong>Scrolling beat &#8216;em up (E.g. Streets of Rage):<br />
</strong></p>
<p><a href="http://www.gotoandplay.it/_articles/2006/06/beatemup.php" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.gotoandplay.it/_articles/2006/06/beatemup.php');" target="_blank">http://www.gotoandplay.it/_articles/2006/06/beatemup.php</a></p>
<p><strong>Platformer (E.g. Sonic the Hedgehog):<br />
</strong></p>
<p><a href="http://www.kirupa.com/developer/mx2004/platform_game.htm" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.kirupa.com/developer/mx2004/platform_game.htm');" target="_blank">http://www.kirupa.com/developer/mx2004/platform_game.htm</a></p>
<p><strong>Shoot &#8216;em up (E.g. That &#8220;kill the teletubbies&#8221; game):<br />
</strong></p>
<p><a href="http://www.sitepoint.com/article/shoot-em-up-game-flash-mx/" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.sitepoint.com/article/shoot-em-up-game-flash-mx/');" target="_blank">http://www.sitepoint.com/article/shoot-em-up-game-flash-mx/</a></p>
<p>They are taylored for different versions of flash but the basic principles apply to any version, and they all seem to work in CS3!</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><em>Know of any other decent flash game tutorials for a genre not hosted here?   Paste them in a comment below!</em></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/10/tutorials-for-5-different-flash-game-genres/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fishy - The most infuriating Flash game that you have to play.</title>
		<link>http://www.gotoandblog.com/2008/08/fishy-the-most-infuriating-flash-game-that-you-have-to-play/</link>
		<comments>http://www.gotoandblog.com/2008/08/fishy-the-most-infuriating-flash-game-that-you-have-to-play/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 23:01:26 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Games]]></category>

		<category><![CDATA[addictive]]></category>

		<category><![CDATA[fish]]></category>

		<category><![CDATA[fishy]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[free]]></category>

		<category><![CDATA[game]]></category>

		<category><![CDATA[games]]></category>

		<category><![CDATA[simple]]></category>

		<category><![CDATA[xgen]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=46</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/fishy-the-most-infuriating-flash-game-that-you-have-to-play/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Fishy - The most infuriating Flash game that you have to play.';
digg_bodytext = 'I%26%238217%3Bve+been+playing+Fishy+whenever+the+Tower+Defense+gaming+is+thin+on+the+ground%2C+and+it+is+one+of+those+games+you+can+just+pick+up+and+play.%0AThe+concept+is+that+you+are+a+fish.+++You+eat...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
I&#8217;ve been playing Fishy whenever the Tower Defense gaming is thin on the ground, and it is one of those games you can just pick up and play.
The concept is that you are a fish.   You eat fish to grow, and avoid bigger fish to stay alive.   Touch a bigger fish [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/fishy-the-most-infuriating-flash-game-that-you-have-to-play/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Fishy - The most infuriating Flash game that you have to play.';
digg_bodytext = 'I%26%238217%3Bve+been+playing+Fishy+whenever+the+Tower+Defense+gaming+is+thin+on+the+ground%2C+and+it+is+one+of+those+games+you+can+just+pick+up+and+play.%0AThe+concept+is+that+you+are+a+fish.+++You+eat...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>I&#8217;ve been playing Fishy whenever the Tower Defense gaming is thin on the ground, and it is one of those games you can just pick up and play.</p>
<p>The concept is that you are a fish.   You eat fish to grow, and avoid bigger fish to stay alive.   Touch a bigger fish and it&#8217;s game over, and the past hour of eating fish was for nothing.</p>
<p>It&#8217;s brilliance is in its simplicity - you don&#8217;t have to think to play this game; you can turn off your brain and while away a few hours with the cheesily animated seaweed and the cheesier music.</p>
<p>I&#8217;d definately recommend it.</p>
<p>Head over to XGen games and play Fishy!<br />
<a href="http://www.xgenstudios.com/play/fishy" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.xgenstudios.com/play/fishy');">http://www.xgenstudios.com/play/fishy</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/08/fishy-the-most-infuriating-flash-game-that-you-have-to-play/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tutorial - Importing an external lolcat (image) into Flash!</title>
		<link>http://www.gotoandblog.com/2008/08/tutorial-importing-an-external-lolcat-image-into-flash/</link>
		<comments>http://www.gotoandblog.com/2008/08/tutorial-importing-an-external-lolcat-image-into-flash/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 23:00:23 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Web Sites]]></category>

		<category><![CDATA[Tutorial]]></category>

		<category><![CDATA[actionscript]]></category>

		<category><![CDATA[button]]></category>

		<category><![CDATA[click]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[dynamic]]></category>

		<category><![CDATA[dynamically]]></category>

		<category><![CDATA[external]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[image]]></category>

		<category><![CDATA[jpg]]></category>

		<category><![CDATA[load]]></category>

		<category><![CDATA[lolcat]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=45</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/tutorial-importing-an-external-lolcat-image-into-flash/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorial - Importing an external lolcat (image) into Flash!';
digg_bodytext = 'Bringing+external+images+into+flash+is+a+really+useful+thing+to+be+able+to+do%2C+so+let%26%238217%3Bs+get+educated%21%0AIn+this+tutorial+I%26%238217%3Bm+going+to+teach+you+how+to+click+a+flash+button%2C+then+display...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Bringing external images into flash is a really useful thing to be able to do, so let&#8217;s get educated!
In this tutorial I&#8217;m going to teach you how to click a flash button, then display an image in the same folder as the flash file within the running swf!











Step 1 - Making the picture holder
Open Flash [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/tutorial-importing-an-external-lolcat-image-into-flash/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorial - Importing an external lolcat (image) into Flash!';
digg_bodytext = 'Bringing+external+images+into+flash+is+a+really+useful+thing+to+be+able+to+do%2C+so+let%26%238217%3Bs+get+educated%21%0AIn+this+tutorial+I%26%238217%3Bm+going+to+teach+you+how+to+click+a+flash+button%2C+then+display...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Bringing external images into flash is a really useful thing to be able to do, so let&#8217;s get educated!</p>
<p>In this tutorial I&#8217;m going to teach you how to click a flash button, then display an image in the same folder as the flash file within the running swf!</p>
<p><span id="more-45"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p><strong>Step 1 - Making the picture holder</strong></p>
<p>Open Flash and make a new Actionscript 2.0 file.   Go Insert > New Symbol and create a movie clip called &#8220;picture_holder&#8221;.</p>
<p>Drag an instance of the picture holder onto the stage.   Click it, then in the properties tab, give it the instance name &#8220;holder&#8221;</p>
<p><strong>Step 2 - Making the Buttons</strong></p>
<p>Make a rectangle on the stage, highlight it and go Modify>Convert to symbol, or press the shortcut key F8.   Make it a button, and call it &#8220;btn_1&#8243;.   Add another layer with some text over the rectangle, saying &#8220;Image 1&#8243;.   </p>
<p>Right click btn_1 and click &#8220;Duplicate&#8221;, naming it &#8220;btn_2&#8243;.   Open it up and change the text to &#8220;Image 2&#8243;.</p>
<p>Make a new layer in the main stage and call it &#8220;Buttons&#8221;.   Drag both buttons to the stage.</p>
<p><strong>Step 3 - Add the code</strong></p>
<p>Select button 1 and input the code:</p>
<p><code><br />
on (release) {<br />
	loadMovie("image1.jpg", holder);<br />
}<br />
</code></p>
<p>What this does is when the button is released, it loads the image &#8220;image1.jpg&#8221;, which is in the same folder as the .swf, into the instance of picture_holder we named &#8220;holder&#8221;.</p>
<p>Click button 2 and add the code:</p>
<p><code><br />
on (release) {<br />
	loadMovie("image2.jpg", holder);<br />
}<br />
</code></p>
<p>Which does the same except for &#8220;image2.jpg&#8221; loading.</p>
<p><strong>Step 4 - Find some lolcats</strong></p>
<p>Have a quick <a href="http://images.google.co.uk/images?q=lolcat" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://images.google.co.uk/images?q=lolcat');">google image search for lolcats</a> and pick a few to load into your flash.   Rename them as &#8220;image1.jpg&#8221; and &#8220;image2.jpg&#8221; and put them in the same folder as your flash file.<br />
<strong><br />
Step 5 - Lolcats venture forth into Flash!</strong></p>
<p>In flash, press Ctrl+enter or go Control>Test Movie.   Try clicking the buttons - voila!   Lolcattage!</p>
<p>Now you can go on to do something perhaps more useful with your skillz, yo!</p>
<p>Download the source files <a href="http://www.gotoandblog.com/downloads/gotoandblogdotcom-display-external-images-in-flash.rar" >here</a>.<br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/08/tutorial-importing-an-external-lolcat-image-into-flash/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Importing PSDs - Save yourself hours of Copy &#038; Pasting!</title>
		<link>http://www.gotoandblog.com/2008/08/importing-psds-save-yourself-hours-of-copy-pasting/</link>
		<comments>http://www.gotoandblog.com/2008/08/importing-psds-save-yourself-hours-of-copy-pasting/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 23:01:51 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Web Sites]]></category>

		<category><![CDATA[Tips]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[import]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[psd]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=44</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/importing-psds-save-yourself-hours-of-copy-pasting/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Importing PSDs - Save yourself hours of Copy &#038; Pasting!';
digg_bodytext = 'I+was+creating+a+flash+gallery+for+my+friend+after+designing+it+in+Photoshop%2C+then+when+I+was+importing+an+individual+picture+from+the+.psd%2C+thinking+I%26%238217%3Bd+have+to+copy+and+paste+each+individual...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
I was creating a flash gallery for my friend after designing it in Photoshop, then when I was importing an individual picture from the .psd, thinking I&#8217;d have to copy and paste each individual element on each layer, I noticed the .psd file itself was available for importing.
I tried it, and that little double click [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/importing-psds-save-yourself-hours-of-copy-pasting/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Importing PSDs - Save yourself hours of Copy &#038; Pasting!';
digg_bodytext = 'I+was+creating+a+flash+gallery+for+my+friend+after+designing+it+in+Photoshop%2C+then+when+I+was+importing+an+individual+picture+from+the+.psd%2C+thinking+I%26%238217%3Bd+have+to+copy+and+paste+each+individual...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>I was creating a flash gallery for my friend after designing it in Photoshop, then when I was importing an individual picture from the .psd, thinking I&#8217;d have to copy and paste each individual element on each layer, I noticed the .psd file itself was available for importing.</p>
<p>I tried it, and that little double click saved me hours and hours of time.   You can automatically send each layer into Flash.   Fantastic!</p>
<p>Some things to remember though:<br />
<span id="more-44"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
<br />
<strong>Keep all your layers in Photoshop named</strong><br />
In Flash, they name the images and movieclips (Yeah, it automatically creates a movieclip for each image too&#8230;) after the name of the layer it&#8217;s on.</p>
<p><strong>Keep all images you want to animate seperately on seperate layers</strong><br />
It can be easy to slack off on making layers for each item, but it will save faffing around later in flash if you can organise it all in Photoshop beforehand!</p>
<p>So give it a try - make your flash content look awesome in photoshop, then make it work in Flash!</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/08/importing-psds-save-yourself-hours-of-copy-pasting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tutorial - Flash, PHP and MYSQL Integration - Part 1: MYSQL and PHP</title>
		<link>http://www.gotoandblog.com/2008/08/tutorial-flash-php-and-mysql-integration-part-1-mysql-and-php/</link>
		<comments>http://www.gotoandblog.com/2008/08/tutorial-flash-php-and-mysql-integration-part-1-mysql-and-php/#comments</comments>
		<pubDate>Fri, 08 Aug 2008 02:30:26 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Web Sites]]></category>

		<category><![CDATA[Tutorial]]></category>

		<category><![CDATA[data]]></category>

		<category><![CDATA[database]]></category>

		<category><![CDATA[display]]></category>

		<category><![CDATA[example]]></category>

		<category><![CDATA[flash]]></category>

		<category><![CDATA[guide]]></category>

		<category><![CDATA[integrate]]></category>

		<category><![CDATA[integration]]></category>

		<category><![CDATA[localhost]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[php]]></category>

		<category><![CDATA[recieve]]></category>

		<category><![CDATA[send]]></category>

		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=43</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/tutorial-flash-php-and-mysql-integration-part-1-mysql-and-php/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorial - Flash, PHP and MYSQL Integration - Part 1: MYSQL and PHP';
digg_bodytext = 'Flash+is+awesome+on+its+own%2C+but+its+true+power+lies+in+its+integratability+with+other+mediums+-+PHP+being+one+of+them.+++And+since+PHP+is+fantastically+well+connected+with+MYSQL%2C+these+three+combined...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
Flash is awesome on its own, but its true power lies in its integratability with other mediums - PHP being one of them.   And since PHP is fantastically well connected with MYSQL, these three combined can be the key to some highly interactive, involving web content.
The only thing is - how do we [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/08/tutorial-flash-php-and-mysql-integration-part-1-mysql-and-php/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'Tutorial - Flash, PHP and MYSQL Integration - Part 1: MYSQL and PHP';
digg_bodytext = 'Flash+is+awesome+on+its+own%2C+but+its+true+power+lies+in+its+integratability+with+other+mediums+-+PHP+being+one+of+them.+++And+since+PHP+is+fantastically+well+connected+with+MYSQL%2C+these+three+combined...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>Flash is awesome on its own, but its true power lies in its integratability with other mediums - PHP being one of them.   And since PHP is fantastically well connected with MYSQL, these three combined can be the key to some highly interactive, involving web content.</p>
<p>The only thing is - how do we do this?   I&#8217;ll show you&#8230;</p>
<p><span id="more-43"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>Firstly,we need to understand how we are going to integrate the 3.   The order is:</p>
<p>Flash - PHP - MYSQL.</p>
<p>PHP acts as a bridge between MYSQL and Flash, giving and taking data to and from them.</p>
<p>For example.</p>
<p>Create this MYSQL table (On my hosting there&#8217;s a convenient little web app called PHPMyadmin which allows you to manage your MYSQL data - If you have this too, enter the code in the &#8220;SQL&#8221; tab):</p>
<p><code> CREATE TABLE `mydatabasename`.`mytable` (<br />
`ID` INT NOT NULL AUTO_INCREMENT ,<br />
`Name` VARCHAR( 25 ) NOT NULL ,<br />
`Age` INT NOT NULL ,<br />
PRIMARY KEY ( `ID` )<br />
) ENGINE = MYISAM </code></p>
<p>This creates a MYSQL table with 3 columns - ID (which will be our primary key - a unique value that we can identify that row of the table by), Name and Age.</p>
<p>With our table in place, the next step is to learn how PHP can link to MYSQL.</p>
<p>Open up notepad and type in the following code:</p>
<blockquote><p>&lt;?php</p>
<p>// Connect to the server (surprisingly enough, you should replace username and password<br />
// with your actual username and password.<br />
$sql = mysql_connect(&#8217;localhost&#8217;, &#8216;username&#8217;, &#8216;password&#8217;) or die(mysql_error());</p>
<p>// Select database<br />
mysql_select_db(&#8217;mydatabase&#8217;, $sql);</p>
<p>// Define some variables that we&#8217;ll insert into our new table.<br />
$username = &#8216;Frank&#8217;;<br />
$age = 30;</p>
<p>// Insert those variables into our table!</p>
<p>mysql_query(&#8221;INSERT INTO mytable (name, age) VALUES (&#8217;&#8221;.$username.&#8221;&#8216;, &#8220;.$age.&#8221;)&#8221;) or die(mysql_error());</p>
<p>?&gt;</p></blockquote>
<p>This is the first data that will go into our table!   Save the file as &#8220;phptomysql.php&#8221;</p>
<p>Upload the file to your hosting and open it&#8230; Nothing appears to happen - you get a blank page, but if you look in your PHPmyadmin at your table&#8230; Gasp!   Frank is 30 years old!</p>
<p>The ID is automatically created, since in the code above you defined it as &#8220;auto_increment&#8221;, which (shock horror) automatically increments the number in that column.</p>
<p>Ok, so now we have the data in, it&#8217;s time to get it out!</p>
<p>Back to notepad - open it up and type the following</p>
<blockquote><p>&lt;?php</p>
<p>// Connect to the server (surprisingly enough, you should replace username and password<br />
// with your actual username and password.<br />
$sql = mysql_connect(&#8217;localhost&#8217;, &#8216;username&#8217;, &#8216;password&#8217;) or die(mysql_error());</p>
<p>// Select database<br />
mysql_select_db(&#8217;mydatabase&#8217;, $sql);</p>
<p>// Put the Query into a variable&#8230;<br />
$query  = &#8220;SELECT ID, name, age FROM mytable&#8221;;</p>
<p>// &#8230;and run the query!<br />
$result = mysql_query($query);</p>
<p>// While there are still rows from the result of the query&#8230;</p>
<p>while($row = mysql_fetch_assoc($result))<br />
{</p>
<p>// Display the data!</p>
<p>echo &#8220;ID :{$row['ID']} &lt;br&gt;&#8221; .<br />
&#8220;Name : {$row['Name']} &lt;br&gt;&#8221; .<br />
&#8220;Age : {$row['Age']} &lt;br&gt;&lt;br&gt;&#8221;;</p>
<p>}</p>
<p>?&gt;</p></blockquote>
<p>Save it as &#8220;mysqltophp.php&#8221;, upload it and run it.   BLAMMO!   Our friend Frank is still 30 years old!   Good to know.</p>
<p>And there you have just:</p>
<ol>
<li>Made a MYSQL table</li>
<li>Input some data into it.</li>
<li>Retrieved the data and displayed it in your browser.</li>
</ol>
<p>Pat yourself on the back!   You earned it! =D</p>
<p>
<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/08/tutorial-flash-php-and-mysql-integration-part-1-mysql-and-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Tower Defense to end all Tower Defense.</title>
		<link>http://www.gotoandblog.com/2008/07/the-tower-defense-to-end-all-tower-defense/</link>
		<comments>http://www.gotoandblog.com/2008/07/the-tower-defense-to-end-all-tower-defense/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 22:49:08 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
		
		<category><![CDATA[Flash Games]]></category>

		<category><![CDATA[creeps]]></category>

		<category><![CDATA[flash game]]></category>

		<category><![CDATA[god]]></category>

		<category><![CDATA[graphics]]></category>

		<category><![CDATA[hardcore]]></category>

		<category><![CDATA[lifespan]]></category>

		<category><![CDATA[powers]]></category>

		<category><![CDATA[research]]></category>

		<category><![CDATA[role playing game]]></category>

		<category><![CDATA[rpg]]></category>

		<category><![CDATA[strategy]]></category>

		<category><![CDATA[temple guardian]]></category>

		<category><![CDATA[temple guardian 2]]></category>

		<category><![CDATA[tower defence]]></category>

		<category><![CDATA[towers]]></category>

		<guid isPermaLink="false">http://www.gotoandblog.com/?p=42</guid>
		<description><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/07/the-tower-defense-to-end-all-tower-defense/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'The Tower Defense to end all Tower Defense.';
digg_bodytext = 'I+have+come+across+a+TD+game+called+%26%238220%3BTemple+Guardian+2%26%238243%3B+-+A+sequal+to+the+original+TD+game+in+which+you+defended+the+temple+%28Shockingly+enough%29+from+a+bunch+of+invading+creeps.%C2%A0%C2%A0+Standard...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
I have come across a TD game called &#8220;Temple Guardian 2&#8243; - A sequal to the original TD game in which you defended the temple (Shockingly enough) from a bunch of invading creeps.   Standard Fare, but it was still an engrossing game that took many an hour of my time.
TG2, though, seems less like a [...]]]></description>
			<content:encoded><![CDATA[<div style="position:relative; padding: 0 0 74px 0;">
<div style="position: absolute; bottom: 0; width: 42px;">
<script type="text/javascript">
digg_url = 'http://www.gotoandblog.com/2008/07/the-tower-defense-to-end-all-tower-defense/';
digg_bgcolor = '#FFFFFF';
digg_skin = '';
digg_window = '';
digg_title = 'The Tower Defense to end all Tower Defense.';
digg_bodytext = 'I+have+come+across+a+TD+game+called+%26%238220%3BTemple+Guardian+2%26%238243%3B+-+A+sequal+to+the+original+TD+game+in+which+you+defended+the+temple+%28Shockingly+enough%29+from+a+bunch+of+invading+creeps.%C2%A0%C2%A0+Standard...';
digg_media = 'news';
digg_topic = '';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
<p>I have come across a TD game called &#8220;Temple Guardian 2&#8243; - A sequal to the original TD game in which you defended the temple (Shockingly enough) from a bunch of invading creeps.   Standard Fare, but it was still an engrossing game that took many an hour of my time.</p>
<p>TG2, though, seems less like a Flash game and more like something that should be on a PS3 or 360.</p>
<p><span id="more-42"></span><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
<p>Okay, I exaggerated a bit.   It is 2D and perhaps the graphics are a <em>tad </em>low-key for a next-gen game, but my point is this game is HUGE.   Like, &#8220;Woah - mount everest just made a flash game&#8221; huge.</p>
<p>There are just so many elements to it.   There is the standard Tower defense.   There is a strategy and research element, where you can upgrade your towers and money-making ability.   There is a whole RPG-esque hero section, where you can recruit heroes, train them up and get them to battle the creeps for you.   There is the God Powers section where you can smite your enemies with fireballs, lightning and a host of other epic powers.   This game is massive.</p>
<p>As a result though, it is very hard to get into.   There is a tutorial, but even though it does a decent job of teaching you the controls, the learning curve of the actual tactics and mechanics of the game is pretty steep.   You might have to play it a few times first to remember everything you need in order to&#8230; well&#8230; survive.</p>
<p>But if you are a hardcore gamer, this is definately for you.   If you are tired of tower defence games ending a few hours after you begin them, try out Temple Guardian 2.   There are weeks of gameplay once you get the hang of it in this game - it&#8217;s just amazing that it&#8217;s free with such a lifespan.   I can barely imagine the months of development that went into it!</p>
<p><a href="http://www.kongregate.com/games/9mine/temple-guardian-2" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.kongregate.com/games/9mine/temple-guardian-2');">Play Temple Guardian 2 at Kongregate.com!</a><br />

<!-- Begin Google Adsense code -->


<script type="text/javascript"><!--
google_ad_client = "pub-2426533385343081";
/* 468x60, created 7/15/08 gtab in-post banner */
google_ad_slot = "3824294175";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- End Google Adsense code -->
</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.gotoandblog.com/2008/07/the-tower-defense-to-end-all-tower-defense/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
