<?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>BrianGriggs.com &#187; Flash</title>
	<atom:link href="http://briangriggs.com/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://briangriggs.com</link>
	<description>Tallest librarian in the world</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:59:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Cooper&#8217;s Road</title>
		<link>http://briangriggs.com/2008/05/21/coopers-road/</link>
		<comments>http://briangriggs.com/2008/05/21/coopers-road/#comments</comments>
		<pubDate>Wed, 21 May 2008 19:45:04 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/?p=122</guid>
		<description><![CDATA[This is Cooper&#8217;s Road, a game made for his Advanced Computers final. Nice job! Use the mouse to move around, avoiding the oncoming traffic. Here&#8217;s the .swf file.]]></description>
			<content:encoded><![CDATA[<p>This is Cooper&#8217;s Road, a game made for his Advanced Computers final. Nice job!<br />
Use the mouse to move around, avoiding the oncoming traffic. </p>
<p><a href='http://briangriggs.com/wp-content/uploads/2008/05/cooper.swf'>Here&#8217;s the .swf file.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2008/05/21/coopers-road/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScript for Advanced Computers</title>
		<link>http://briangriggs.com/2008/03/12/actionscript-for-advanced-computers/</link>
		<comments>http://briangriggs.com/2008/03/12/actionscript-for-advanced-computers/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 15:43:28 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tech How To]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2008/03/12/actionscript-for-advanced-computers/</guid>
		<description><![CDATA[(and for Future Professionals, but we&#8217;ve been working on this) The first type of code that I like to introduce is &#8220;stop();&#8221;. Put this in the ActionScript for the first frame. Test the movie. Instead of moving on through the frames, it stops in frame 1. How exciting. Let&#8217;s animate a figure. This is circleman. [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>(and for Future Professionals, but we&#8217;ve been working on this)</strong></em></p>
<p>The first type of code that I like to introduce is &#8220;stop();&#8221;. Put this in the ActionScript for the first frame. Test the movie. Instead of moving on through the frames, it stops in frame 1. How exciting.<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture5-1.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture5-1.png" border="0" alt="Photobucket"></a></p>
<p>Let&#8217;s animate a figure.<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture6-1.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture6-1.png" border="0" alt="Photobucket"></a><br />
This is circleman. He is a very complex character with artwork that took me hours to draw.</p>
<p>To be able to easily reuse circleman, instead of drawing him on the stage, I made him a separate movie clip in the Flash file&#8217;s library. That way I don&#8217;t have to spend hours re-drawing him.</p>
<p>Right now he&#8217;s kindof boring in his new layer on frame 1, especially since the &#8220;stop();&#8221; command doesn&#8217;t move the animation anywhere. But for this movie, all of the fun will happen in one frame. </p>
<p>Make sure that circleman is selected, click on his ActionScript button, and type in the code that you see in the picture:<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture9-1.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture9-1.png" border="0" alt="Photobucket"></a></p>
<p>The onClipEvent(load) is a one time thing when that movie clip shows up in the frame the first time around. You&#8217;re setting up the initial values of the speed.</p>
<p>The onClipEvent(enterFrame) is every time the frame loops. With the LEFT function, it&#8217;s making your <strong>xspeed</strong> value a negative one. Outside of the  Key.isDown(Key.LEFT) function the <strong>_x</strong> and <strong>_y </strong> is being added to whatever your xspeed and yspeed values are. It will do this each time the frame loops (many times per second). This creates the constant motion. If you don&#8217;t like the constant motion, you could put the _x += xspeed; part inside the Key.isDown function to add the xspeed only when the key is down.</p>
<p>Remember: Brackets start and stop a function. Every time there&#8217;s an open bracket it has to close the function somewhere with a close bracket.</p>
<p>Back to the Key.isDown, the way we&#8217;ve got it set up, circleman moves left until he is stuck in the netherworld called &#8220;Offscreen&#8221; with no hope of return. Add some UP, DOWN, and RIGHT Key.isDown functions.</p>
<p><strong>Boundaries</strong><br />
<em>Here&#8217;s where stuff gets crazy.</em></p>
<p>Create a movie called &#8220;bounds&#8221;.<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture11.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture11.png" border="0" alt="Photobucket"></a><br />
This will be your environment/world/level.<br />
Put the movie bounds on the stage. Name its instance &#8220;wall&#8221;.<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture10.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture10.png" border="0" alt="Photobucket"></a></p>
<p>In circleman&#8217;s ActionScript, add a hitTest after your Key.isDown code but before your _y+=yspeed; stuff.<br />
<a href="http://s936.photobucket.com/albums/ad207/tallestlibrarian/?action=view&#038;current=Picture12.png" target="_blank"><img src="http://i936.photobucket.com/albums/ad207/tallestlibrarian/Picture12.png" border="0" alt="Photobucket"></a><br />
If the character hits the bounds, it stops and then moves to new x,y coordinates.</p>
<p><a href="http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/">This ActionScript dictionary</a> is officially your best friend.</p>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2008/03/12/actionscript-for-advanced-computers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animation and Games &#8211; Straight from Adobe</title>
		<link>http://briangriggs.com/2008/02/06/animation-and-games-straight-from-adobe/</link>
		<comments>http://briangriggs.com/2008/02/06/animation-and-games-straight-from-adobe/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 19:23:03 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Tech How To]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2008/02/06/animation-and-games-straight-from-adobe/</guid>
		<description><![CDATA[Adobe, distributors of Flash, have some great tutorials on character animation and game design.   If you want to see how to make great cartoon graphics, check out the tutorial here. If you want to see a game where the ground moves underneath your character, click here.    ]]></description>
			<content:encoded><![CDATA[<p>Adobe, distributors of Flash, have some great tutorials on character animation and game design. 
<ul>
<li> If you want to see how to make great cartoon graphics, <a href="http://www.adobe.com/devnet/flash/articles/design_character.html" target="_blank">check out the tutorial here</a>.</li>
<li>If you want to see a game where the ground moves underneath your character, <a href="http://www.adobe.com/devnet/flash/articles/train_simple_game_dev.html#" target="_blank">click here</a>.  </li>
</ul>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2008/02/06/animation-and-games-straight-from-adobe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Instances in a Platformer</title>
		<link>http://briangriggs.com/2008/02/06/instances-in-a-platformer/</link>
		<comments>http://briangriggs.com/2008/02/06/instances-in-a-platformer/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 18:37:52 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Tech How To]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2008/02/06/instances-in-a-platformer/</guid>
		<description><![CDATA[For Future Professionals today we&#8217;ll look at creating movie clips as instances and adding ActionScript code to the instances to make the characters move around. A great tutorial is at Newgrounds. Once you&#8217;re there, click on &#8216;Play the Game.]]></description>
			<content:encoded><![CDATA[<p>For Future Professionals today we&#8217;ll look at creating movie clips as instances and adding ActionScript code to the instances to make the characters move around. A great tutorial is <a href="http://www.newgrounds.com/portal/view/146524#" target="_blank">at Newgrounds</a>. Once you&#8217;re there, click on &#8216;Play the Game.</p>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2008/02/06/instances-in-a-platformer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mario-type Platform Continued</title>
		<link>http://briangriggs.com/2008/01/08/mario-type-platform-continued/</link>
		<comments>http://briangriggs.com/2008/01/08/mario-type-platform-continued/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 23:16:40 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Tech How To]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2008/01/08/mario-type-platform-continued/</guid>
		<description><![CDATA[Continuing on with what we talked about the past couple of meetings with Flash, here is a platform game where the person turns around and a villain that is beatable.Provided by Magnetos from gotoAndPlay.it: Platform &#8211; saltas  Figure out your own artwork and boundary box (how big is too big of a character?) Find where the enemy vs. [...]]]></description>
			<content:encoded><![CDATA[<p>Continuing on with <a href="http://briangriggs.com/tag/flash/">what we talked abou</a>t the past couple of meetings with <a href="http://briangriggs.com/tag/flash/">Flash</a>, here is a platform game where the person turns around and a villain that is beatable.Provided by Magnetos from gotoAndPlay.it: <a href="http://briangriggs.com/wp-content/uploads/2008/01/saltas1.fla" title="Platform - saltas">Platform &#8211; saltas</a>
<ol>
<li> Figure out your own artwork and boundary box (how big is <span style="font-style: italic" class="Apple-style-span">too big</span> of a character?)</li>
<li>Find where the enemy vs. hero collision is.</li>
<li>Notice that <span style="font-style: italic" class="Apple-style-span">hero_walk</span> is different from <span style="font-style: italic" class="Apple-style-span">sidewalk</span>. Figure out which one you need to edit.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2008/01/08/mario-type-platform-continued/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Platform Game Creation</title>
		<link>http://briangriggs.com/2007/12/12/platform-game-creation/</link>
		<comments>http://briangriggs.com/2007/12/12/platform-game-creation/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 20:45:03 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Tech How To]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2007/12/12/platform-game-creation/</guid>
		<description><![CDATA[Check out the tutorial at gotoandplay.it about platform game creation by tonypa. The source file for Flash can be downloaded here &#8211; platform.fla Try adding platforms in different areas. Different frames of your project can be different levels. Change the square to a different character. Add an obstacle/villain that moves on its own.]]></description>
			<content:encoded><![CDATA[<p>Check out the tutorial at gotoandplay.it about <a href="http://gotoandplay.it/_articles/2003/08/platform.php" target="_blank">platform game creation</a> by <a href="http://www.tonypa.pri.ee/tbw/start.html" target="_blank">tonypa</a>. The source file for Flash can be downloaded here &#8211; <a href="http://briangriggs.com/wp-content/uploads/2007/12/platform.fla" title="platform.fla">platform.fla</a></p>
<ol>
<li>Try adding platforms in different areas. Different frames of your project can be different levels.</li>
<li>Change the square to a different character.</li>
<li>Add an obstacle/villain that moves on its own.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2007/12/12/platform-game-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Game Sample</title>
		<link>http://briangriggs.com/2007/11/21/flash-game-sample/</link>
		<comments>http://briangriggs.com/2007/11/21/flash-game-sample/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 00:48:36 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Tech How To]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://briangriggs.com/2007/11/21/flash-game-sample/</guid>
		<description><![CDATA[Today at Future Professionals I could see that some were almost ready to start programming in Flash, but were intimidated by the time that it takes to get used to ActionScript. It, literally, is another language. Just like Spanish or French, it takes some getting used to. One of the ways that I became familiar [...]]]></description>
			<content:encoded><![CDATA[<p>Today at Future Professionals I could see that some were almost ready to start programming in Flash, but were intimidated by the time that it takes to get used to ActionScript.</p>
<p>It, literally, is another language. Just like Spanish or French, it takes some getting used to. One of the ways that I became familiar with programming was by taking apart other people&#8217;s programs.</p>
<p>So I give to you a game that I made for my friend Brian. (In my high school group of friends was Tommy, Tommy, Brian, Brian, and Mike.)</p>
<p>Click on the <strong>.fla</strong> file to download the source. (Depending on where you are, you may need to right click/control click.)</p>
<p><a href="http://briangriggs.com/wp-content/uploads/2007/11/brianland-source.fla" title="Brianland Source File">Brianland Source File</a></p>
<p>Test the movie in Flash to see what it does (spacebar fires and arrows move) and then experiment.</p>
<p>As you experiment, try to:</p>
<ol>
<li>Increase the amount of money the character gets</li>
<li>Increase the number of hook gnomes</li>
<li>Change the amazing artwork</li>
</ol>
<p>Once you are comfortable with editing the parts of the program, try <a href="http://gotoandplay.it/_articles/index.php" target="_blank">editing other people&#8217;s files</a> and <a href="http://gotoandplay.it/_articles/2003/09/movingSprites.php" target="_blank">finding tutorials</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://briangriggs.com/2007/11/21/flash-game-sample/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.454 seconds -->
