<?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>Blue Cap Development Studio &#187; Flash / ActionScript</title>
	<atom:link href="http://www.bluecapstudio.com/blog/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bluecapstudio.com/blog</link>
	<description>Just another development studio</description>
	<lastBuildDate>Fri, 11 Dec 2009 05:43:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Zombie Splatter</title>
		<link>http://www.bluecapstudio.com/blog/2009/09/zombie-splatter/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/09/zombie-splatter/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 23:29:45 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>
		<category><![CDATA[My Projects]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=60</guid>
		<description><![CDATA[Another little thing I put together while learning a few techniques. The plan for this game is a typical arena style war where you the player must survive against an on slaughter of crazed zombies. Blow them up or shoot them down to survive.
Controls &#8211; Use the mouse to aim your gun and shoot and [...]]]></description>
			<content:encoded><![CDATA[<p>Another little thing I put together while learning a few techniques. The plan for this game is a typical arena style war where you the player must survive against an on slaughter of crazed zombies. Blow them up or shoot them down to survive.</p>
<p><strong>Controls</strong> &#8211; Use the mouse to aim your gun and shoot and move around the screen using the arrow keys. You can also change your gun type using the numbers on the keyboard. Be fearful not to get too close to the enemies though, or they may eat your brains!</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_zombieSplatter_1574507361"
			class="flashmovie"
			width="600"
			height="500">
	<param name="movie" value="http://www.bluecapstudio.com/flash/zombieSplatter.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/zombieSplatter.swf"
			name="fm_zombieSplatter_1574507361"
			width="600"
			height="500">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><strong>UPDATES</strong><br />
<em>Sept 13 -</em> Added a blood splatter effect when you kill an enemy.<br />
<em>Sept 12 -</em> Added random speed for each zombie and added a collision detection between each enemy so they don&#8217;t merge into each other</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/09/zombie-splatter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Avoid It</title>
		<link>http://www.bluecapstudio.com/blog/2009/09/avoid-it/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/09/avoid-it/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 04:29:43 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>
		<category><![CDATA[My Projects]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=51</guid>
		<description><![CDATA[Another little simple game that I put together in about twenty minutes. Its based of an old truing game I made once for a high school programming class. I may improve upon it later since its more interesting the the Break It game.
EDIT: Added a few new little features. Now there are blocks that also [...]]]></description>
			<content:encoded><![CDATA[<p>Another little simple game that I put together in about twenty minutes. Its based of an old truing game I made once for a high school programming class. I may improve upon it later since its more interesting the the Break It game.</p>
<p><strong>EDIT:</strong> Added a few new little features. Now there are blocks that also fall but don&#8217;t fear, for they are you friend! The falling red angry squares can&#8217;t get through the blocks and make perfect safety nets for you to hide under. Though don&#8217;t get caught under one at the bottom of the screen, or you will be thrown back up into the mass of enemies.</p>
<p><strong>Controls</strong> &#8211; Use the arrow keys to keep the smiley face away from the mad square people.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_avoidIt_423783559"
			class="flashmovie"
			width="500"
			height="500">
	<param name="movie" value="http://www.bluecapstudio.com/flash/avoidIt.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/avoidIt.swf"
			name="fm_avoidIt_423783559"
			width="500"
			height="500">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/09/avoid-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Break It</title>
		<link>http://www.bluecapstudio.com/blog/2009/09/break-it/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/09/break-it/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 00:32:05 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>
		<category><![CDATA[My Projects]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=47</guid>
		<description><![CDATA[First little game in flash I have put together. Its a simple little block breaker type game which I creatively named Break It. I know its a little glitchy still like when the ball hits the paddle on the sides it often gets sucked into the paddle for a few seconds before releasing.
Controls &#8211; Left [...]]]></description>
			<content:encoded><![CDATA[<p>First little game in flash I have put together. Its a simple little block breaker type game which I creatively named Break It. I know its a little glitchy still like when the ball hits the paddle on the sides it often gets sucked into the paddle for a few seconds before releasing.</p>
<p><strong>Controls</strong> &#8211; Left and Right arrow keys to move the paddle back-and-forth.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_breakIt_1920943510"
			class="flashmovie"
			width="600"
			height="400">
	<param name="movie" value="http://www.bluecapstudio.com/flash/breakIt.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/breakIt.swf"
			name="fm_breakIt_1920943510"
			width="600"
			height="400">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/09/break-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>startDrag &#8211; Tutorial</title>
		<link>http://www.bluecapstudio.com/blog/2009/09/29/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/09/29/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 23:10:11 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=29</guid>
		<description><![CDATA[I posted this little tutorial up on codesociety.net earlier and figured I would post it here as well.
Difficulty Level : 1/10 &#8211; Very Easy
Description : A simple program where the user can use the mouse left click to drag an object around the screen.
So here is my first little tutorial on Code Society. This tutorial [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><em>I posted this little tutorial up on <a href="http://www.codesociety.net">codesociety.net</a> earlier and figured I would post it here as well.</em></p>
<p>Difficulty Level : 1/10 &#8211; Very Easy<br />
Description : A simple program where the user can use the mouse left click to drag an object around the screen.</p>
<p>So here is my first little tutorial on Code Society. This tutorial will guide you through the basics of dragging on object around the screen using the mouse. Although this is a very simple method, it leaves you with the ability of modifying and improving these basics to something great!</p>
<p>This tutorial assumes you know how to set up a new project, creating objects and you have basic understanding of the stage and flash in general. The only thing taught in this tutorial is the actionscript.<br />
&#8212;&#8211;</p>
<p>Here is the code complete code. I will explain it all in a moment.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw4">package</span>
<span class="br0">&#123;</span>
<span class="co1">//Import files</span>
<span class="kw1">import</span> <span class="kw6">flash.display</span>.<a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Sprite</span></a>;
<span class="kw1">import</span> <span class="kw6">flash.events</span>.<a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>;
&nbsp;
<span class="kw1">public</span> <span class="kw4">class</span> BallDrag extends <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Sprite</span></a>
<span class="br0">&#123;</span>
<span class="co1">//Class constructor</span>
<span class="kw1">public</span> <span class="kw3">function</span> BallDrag<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">//Initiate the program</span>
<span class="kw7">init</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
&nbsp;
<span class="kw3">function</span> <span class="kw7">init</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">//Event Listeners</span>
ball.<span class="kw7">addEventListener</span><span class="br0">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>.<span class="kw8">MOUSE_DOWN</span>,mouseDownClick<span class="br0">&#41;</span>;
ball.<span class="kw7">addEventListener</span><span class="br0">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>.<span class="kw8">MOUSE_UP</span>,mouseUpClick<span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
&nbsp;
<span class="co1">//MouseDownClick</span>
<span class="co1">//This function is called through the event listener when the mouse click starts</span>
<span class="kw3">function</span> mouseDownClick<span class="br0">&#40;</span>e<span class="sy0">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span>
<span class="br0">&#123;</span>
<span class="co1">//Starts the dragging of the ball object</span>
ball.<span class="kw7">startDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
&nbsp;
<span class="co1">//MouseUpClick</span>
<span class="co1">//This function is called through the event listener when the mouse click stops</span>
<span class="kw3">function</span> mouseUpClick<span class="br0">&#40;</span>e<span class="sy0">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span>
<span class="br0">&#123;</span>
<span class="co1">//Stops the dragging of the ball object</span>
ball.<span class="kw7">stopDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
&nbsp;
<span class="br0">&#125;</span>
&nbsp;
<span class="br0">&#125;</span></pre></div></div>

<p>So lets go through it now shall we?</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="co1">//Import files</span>
<span class="kw1">import</span> <span class="kw6">flash.display</span>.<a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Sprite</span></a>;
<span class="kw1">import</span> <span class="kw6">flash.events</span>.<a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>;</pre></div></div>

<p>If you already know what importing other files into your script does, then this should seem simple enough to you. All we did was use two library class files native to flash. flash.display.Sprite imports the Sprite class to your program so that you can use the properties associated with it.</p>
<p>Alternatively we could have used the flash.display.MovieClip import which would have had the same effect. The only real difference between Sprite and MovieClip is that you can use time lines in MovieClip symbols.</p>
<p>flash.events.MouseEvent is used to keep track of exactly what you think, mouse events. To keep track of when the mouse is clicked you will need to import this.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw1">public</span> <span class="kw4">class</span> BallDrag extends <a href="http://www.google.com/search?q=sprite%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:sprite.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">Sprite</span></a></pre></div></div>

<p>Another simple topic if you have done OOP before. BallDrag is the class we are working with. The unique part however is the extends Sprite. This is why we imported Sprite into the file previously. What this means is that BallDrag now extends the Sprite class and all its properties. This can become complicated so we will just leave it at that for now.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="co1">//Class constructor</span>
<span class="kw1">public</span> <span class="kw3">function</span> BallDrag<span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">//Initiate the program</span>
<span class="kw7">init</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div>

<p>This is what we call the constructor of the class. A constructor function is typically used to set the values of the properties and basically do whats needed to be done when a new BallDrag object is instantiated. Although it isn&#8217;t needed, I decided to call a method called init() and have all the properties set in init() instead.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw3">function</span> <span class="kw7">init</span><span class="br0">&#40;</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
<span class="co1">//Event Listeners</span>
ball.<span class="kw7">addEventListener</span><span class="br0">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>.<span class="kw8">MOUSE_DOWN</span>,mouseDownClick<span class="br0">&#41;</span>;
ball.<span class="kw7">addEventListener</span><span class="br0">&#40;</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a>.<span class="kw8">MOUSE_UP</span>,mouseUpClick<span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div>

<p>Now we are getting to the fun stuff. Here we added two event listeners for the object we plan to move around the screen. In case you where wondering what ball was, it is the instance name for the object we are using to move around.</p>
<p>So what these two little lines do is pretty simple. The first event listener waits until a mouse event known as MOUSE_DOWN occurs on the ball object. When it does happen the function mouseDownClick is called and run. Its the same thing for the second event listener. The only difference this time is it waits for the event MOUSE_UP. When that happens it calls the mouseUpClick function. Pretty simple no?</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="co1">//MouseDownClick</span>
<span class="co1">//This function is called through the event listener when the mouse click starts</span>
<span class="kw3">function</span> mouseDownClick<span class="br0">&#40;</span>e<span class="sy0">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span>
<span class="br0">&#123;</span>
<span class="co1">//Starts the dragging of the ball object</span>
ball.<span class="kw7">startDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span>
&nbsp;
<span class="co1">//MouseUpClick</span>
<span class="co1">//This function is called through the event listener when the mouse click stops</span>
<span class="kw3">function</span> mouseUpClick<span class="br0">&#40;</span>e<span class="sy0">:</span><a href="http://www.google.com/search?q=mouseevent%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:mouseevent.html&amp;filter=0&amp;num=100&amp;btnI=lucky"><span class="kw5">MouseEvent</span></a><span class="br0">&#41;</span><span class="sy0">:</span><span class="kw1">void</span>
<span class="br0">&#123;</span>
<span class="co1">//Stops the dragging of the ball object</span>
ball.<span class="kw7">stopDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
<span class="br0">&#125;</span></pre></div></div>

<p>This here is the final little bit. Because they are virtually the same I will explain both at once.</p>
<p>As said in the last little bit of code description, these functions are called when the event listeners hear what it is they are meant to hear. So when the event listener for MOUSE_DOWN occures, the mouseDownClick function gets called.</p>
<p>It is important to see that both functions have the MouseEvent parameter passed into them. Although we don&#8217;t need to use the event in this case, if you do not include it you will get a parameter count error.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;">ball.<span class="kw7">startDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;
ball.<span class="kw7">stopDrag</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</pre></div></div>

<p>Actionscript is a pretty easy language to read through because of the syntax. This here is a perfect example. ball.startDrag(); and ball.stopDrag(); will stop and start the dragging of the object it is attached to. There is no complicated math and x y-cordinates to track. These two little functions do all the work for you.</p>
<p>&#8212;</p>
<p>So with this code you can see just how easy it is to do something simple like dragging objects around the screen. The key parts of this tutorial is the event listeners &#8216;addEventListener();&#8217; and the startDrag(); and stopDrag(); functions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/09/29/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Platformer &#8211; Stage One</title>
		<link>http://www.bluecapstudio.com/blog/2009/09/a-platformer-stage-one/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/09/a-platformer-stage-one/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 22:01:58 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=25</guid>
		<description><![CDATA[Here is the beginning to a future plat former. O yes, its another stick-man! Ha ha, so right now all you can do is run around and jump. Amazing right? Not really but this will be the first little game I plan to push out.
The game will have a few little things in it like [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the beginning to a future plat former. O yes, its another stick-man! Ha ha, so right now all you can do is run around and jump. Amazing right? Not really but this will be the first little game I plan to push out.</p>
<p>The game will have a few little things in it like enemies and stuff, the basics you would expect. So have fun running around!</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_jump_1824247232"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.bluecapstudio.com/flash/jump.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/jump.swf"
			name="fm_jump_1824247232"
			width="400"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/09/a-platformer-stage-one/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>gotoAndPlay with frame labels</title>
		<link>http://www.bluecapstudio.com/blog/2009/08/gotoandplay-with-frame-labels/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/08/gotoandplay-with-frame-labels/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 17:47:39 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=21</guid>
		<description><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_testRunning_1613732878"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.bluecapstudio.com/flash/testRunning.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/testRunning.swf"
			name="fm_testRunning_1613732878"
			width="400"
			height="300">
	<!--<![endif]-->
		


	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
Just another fun movement file. The only thing new here is that I have finally figured how to use gotoAndPlay() correctly with frame labels and object animations. As you can see, the blob moves correctly (most of the time) through its animation set while you move left or right, [...]]]></description>
			<content:encoded><![CDATA[
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_testRunning_2031883350"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.bluecapstudio.com/flash/testRunning.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/testRunning.swf"
			name="fm_testRunning_2031883350"
			width="400"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Just another fun movement file. The only thing new here is that I have finally figured how to use gotoAndPlay() correctly with frame labels and object animations. As you can see, the blob moves correctly (most of the time) through its animation set while you move left or right, and has a different label state when not moving and or going up or down.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/08/gotoandplay-with-frame-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>startDrag() &#8211; Something New</title>
		<link>http://www.bluecapstudio.com/blog/2009/08/startdrag-something-new/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/08/startdrag-something-new/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 23:43:09 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=17</guid>
		<description><![CDATA[Was doing a little web surfing trying to get a better understanding of binary parsing between flash and PHP and found these interesting mouse event called startDrag and stopDrag. I have done my own little drag functions before where you change the object&#8217;s &#8211; or in this case, the movie clips &#8211; x and or [...]]]></description>
			<content:encoded><![CDATA[<p>Was doing a little web surfing trying to get a better understanding of binary parsing between flash and PHP and found these interesting mouse event called startDrag and stopDrag. I have done my own little drag functions before where you change the object&#8217;s &#8211; or in this case, the movie clips &#8211; x and or y-axis position on screen while some sort of event is occurring. This though just simplifies things and gets me thinking about possible uses for this.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_startDragItem_408308322"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.bluecapstudio.com/flash/startDragItem.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/startDragItem.swf"
			name="fm_startDragItem_408308322"
			width="400"
			height="300">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Click down with the left mouse button on the little ball and drag it around the screen. Releasing the mouse left click button will let go of the ball.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/08/startdrag-something-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moveable head and scrolling background &#8211; A beggining</title>
		<link>http://www.bluecapstudio.com/blog/2009/08/moveable-head-and-scrolling-background-a-beggining/</link>
		<comments>http://www.bluecapstudio.com/blog/2009/08/moveable-head-and-scrolling-background-a-beggining/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 23:00:55 +0000</pubDate>
		<dc:creator>Brandon</dc:creator>
				<category><![CDATA[Flash / ActionScript]]></category>

		<guid isPermaLink="false">http://www.bluecapstudio.com/blog/?p=3</guid>
		<description><![CDATA[I have only recently started learning flash again. A couple of years ago I spent a little time learning action script 2.0, though since then have forgotten most of it. Thankfully I found a few interesting books and have been enjoying the relearning process, even if the language is similar to other languages I have [...]]]></description>
			<content:encoded><![CDATA[<p>I have only recently started learning flash again. A couple of years ago I spent a little time learning action script 2.0, though since then have forgotten most of it. Thankfully I found a few interesting books and have been enjoying the relearning process, even if the language is similar to other languages I have experience in like Java.</p>
<p>This here is my first little fun project in Flash. I find that if I make games while learning a new language, it increases the learning speed and is obviously more fun.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_characterControl_81015991"
			class="flashmovie"
			width="400"
			height="300">
	<param name="movie" value="http://www.bluecapstudio.com/flash/characterControl.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.bluecapstudio.com/flash/characterControl.swf"
			name="fm_characterControl_81015991"
			width="400"
			height="300">
	<!--<![endif]-->
		<a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Right now it’s nothing more than a simple square head that you can move around the screen. Well, not exactly. The head never moves but the background behind it. This is the basics of screen scrolling &#8211; the same thing found in many of the old school 2d games like the super mario bros.  Here is an example of the 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
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;color: #ccc; font: 12px Consolas, Lucida Console, Monaco, monospace;"><span class="kw1">if</span><span class="br0">&#40;</span>backgroundIMG.<span class="me1">x</span> + backgroundHalfWidth <span class="sy0">&lt;</span> <span class="kw3">stage</span>.<span class="me1">stageWidth</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	backgroundIMG.<span class="me1">x</span> = <span class="kw3">stage</span>.<span class="me1">stageWidth</span> - backgroundHalfWidth;
<span class="br0">&#125;</span>
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>backgroundIMG.<span class="me1">x</span> - backgroundHalfWidth <span class="sy0">&gt;</span> <span class="nu0">0</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	backgroundIMG.<span class="me1">x</span> = <span class="nu0">0</span> + backgroundHalfWidth;
<span class="br0">&#125;</span>
&nbsp;
<span class="kw1">if</span><span class="br0">&#40;</span>backgroundIMG.<span class="me1">y</span> - backgroundHalfHeight <span class="sy0">&gt;</span> <span class="nu0">0</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	backgroundIMG.<span class="me1">y</span> = <span class="nu0">0</span> + backgroundHalfHeight;
<span class="br0">&#125;</span>
<span class="kw1">else</span> <span class="kw1">if</span><span class="br0">&#40;</span>backgroundIMG.<span class="me1">y</span> + backgroundHalfHeight <span class="sy0">&lt;</span> <span class="kw3">stage</span>.<span class="me1">stageHeight</span><span class="br0">&#41;</span>
<span class="br0">&#123;</span>
	backgroundIMG.<span class="me1">y</span> = <span class="kw3">stage</span>.<span class="me1">stageHeight</span> - backgroundHalfHeight;
<span class="br0">&#125;</span></pre></td></tr></table></div>

<p>I eventually plan to add things to it, improve the scrolling so you can reach the borders, add enemies to avoid or fight and finally add some goal or point for the player to play (item collection, score or something of that nature).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bluecapstudio.com/blog/2009/08/moveable-head-and-scrolling-background-a-beggining/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
