<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Flash game creation tutorial &#8211; part 1 (with AS3 classes)</title>
	<atom:link href="http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Sat, 11 Feb 2012 05:27:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: clint</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-844541</link>
		<dc:creator>clint</dc:creator>
		<pubDate>Wed, 01 Jun 2011 16:07:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-844541</guid>
		<description>all that code and fiddling only to get an ugly circle drop from the middle of the stage and loops!!!?!?!??!</description>
		<content:encoded><![CDATA[<p>all that code and fiddling only to get an ugly circle drop from the middle of the stage and loops!!!?!?!??!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-742028</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Sun, 30 Jan 2011 06:55:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-742028</guid>
		<description>I apologize in advance if I screw up some terminology here, I&#039;m very new to coding and I&#039;m still in the process of learning myself. However, after analyzing the code, I believe I can help you understand those functions.

The is_? functions you are referring to are set as public so they can be accessed outside of the keys class. An instance of the keys class has been used in the as3circle class. 

as3circle has an enter frame function running and checks the value of each one of those functions every time the frame is entered. 

For example, line 16 of as3circle: 

&quot;if (keyboard_input.is_left()&quot;

is checking if that is true or false. The .is_left portion calls the public function is_left located on line 13 of the keys class. When it calls that function, the function runs through and the &quot;return&quot; does just that.

Line 14 says &quot;return press_left;&quot; and it checks the value of the variable &quot;press_left&quot; and gives that value to whatever called the function. In this case, that would be line 16 of as3circle. If it&#039;s true, then the force is applied. If it is false, it skips that function and moves on to the next one. 

I hope this helped!</description>
		<content:encoded><![CDATA[<p>I apologize in advance if I screw up some terminology here, I&#8217;m very new to coding and I&#8217;m still in the process of learning myself. However, after analyzing the code, I believe I can help you understand those functions.</p>
<p>The is_? functions you are referring to are set as public so they can be accessed outside of the keys class. An instance of the keys class has been used in the as3circle class. </p>
<p>as3circle has an enter frame function running and checks the value of each one of those functions every time the frame is entered. </p>
<p>For example, line 16 of as3circle: </p>
<p>&#8220;if (keyboard_input.is_left()&#8221;</p>
<p>is checking if that is true or false. The .is_left portion calls the public function is_left located on line 13 of the keys class. When it calls that function, the function runs through and the &#8220;return&#8221; does just that.</p>
<p>Line 14 says &#8220;return press_left;&#8221; and it checks the value of the variable &#8220;press_left&#8221; and gives that value to whatever called the function. In this case, that would be line 16 of as3circle. If it&#8217;s true, then the force is applied. If it is false, it skips that function and moves on to the next one. </p>
<p>I hope this helped!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Wallström</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-698667</link>
		<dc:creator>Simon Wallström</dc:creator>
		<pubDate>Wed, 08 Dec 2010 16:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-698667</guid>
		<description>Hey Guys!
I´m having some trouble with this in Flash cs5. I did exactly like the tutorial apart for some different filenames but i´m still getting an error. It says that &quot;init is not a function&quot; in my main.as file...any ideas?</description>
		<content:encoded><![CDATA[<p>Hey Guys!<br />
I´m having some trouble with this in Flash cs5. I did exactly like the tutorial apart for some different filenames but i´m still getting an error. It says that &#8220;init is not a function&#8221; in my main.as file&#8230;any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hiran</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-677423</link>
		<dc:creator>Hiran</dc:creator>
		<pubDate>Fri, 12 Nov 2010 18:49:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-677423</guid>
		<description>thanks a lot, not only for this, but for all his tutorials really are very good, simple and complete, congratulations and thank you again.</description>
		<content:encoded><![CDATA[<p>thanks a lot, not only for this, but for all his tutorials really are very good, simple and complete, congratulations and thank you again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Create a Flash game like Pixel Purge step 1 &#8211; player movement - Emanuele Feronato</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-644003</link>
		<dc:creator>Create a Flash game like Pixel Purge step 1 &#8211; player movement - Emanuele Feronato</dc:creator>
		<pubDate>Tue, 21 Sep 2010 21:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-644003</guid>
		<description>[...] the player are perfectly centered on the stage. Then, when the ship moves, in a way very similar to Flash game creation tutorial – part 1 (with AS3 classes), the background scrolls in the opposite way, keeping the ship centered in the screen, until it gets [...]</description>
		<content:encoded><![CDATA[<p>[...] the player are perfectly centered on the stage. Then, when the ship moves, in a way very similar to Flash game creation tutorial – part 1 (with AS3 classes), the background scrolls in the opposite way, keeping the ship centered in the screen, until it gets [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: De Leon</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-621187</link>
		<dc:creator>De Leon</dc:creator>
		<pubDate>Thu, 12 Aug 2010 02:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-621187</guid>
		<description>Can you post, tell me where to see the comments or send me the comments for the AS in each class.

Thanks
De Leon</description>
		<content:encoded><![CDATA[<p>Can you post, tell me where to see the comments or send me the comments for the AS in each class.</p>
<p>Thanks<br />
De Leon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jose</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-608733</link>
		<dc:creator>jose</dc:creator>
		<pubDate>Fri, 23 Jul 2010 23:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-608733</guid>
		<description>if it wasn&#039; for your tutorials i would have never started to make asc3 flash games less gettin good at it. thx a lot</description>
		<content:encoded><![CDATA[<p>if it wasn&#8217; for your tutorials i would have never started to make asc3 flash games less gettin good at it. thx a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prandini</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-482521</link>
		<dc:creator>Prandini</dc:creator>
		<pubDate>Sat, 08 Aug 2009 06:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-482521</guid>
		<description>Great example!</description>
		<content:encoded><![CDATA[<p>Great example!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meh_c00kie</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-454875</link>
		<dc:creator>Meh_c00kie</dc:creator>
		<pubDate>Sat, 30 May 2009 15:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-454875</guid>
		<description>Hi I tried this but it dosent work with animated MCs how do you fix this?</description>
		<content:encoded><![CDATA[<p>Hi I tried this but it dosent work with animated MCs how do you fix this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomdeaap</title>
		<link>http://www.emanueleferonato.com/2008/10/31/flash-game-creation-tutorial-part-1-with-as3-classes/#comment-436666</link>
		<dc:creator>tomdeaap</dc:creator>
		<pubDate>Tue, 21 Apr 2009 14:26:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=606#comment-436666</guid>
		<description>Can you please explain the keys class, I don&#039;t really undestand what the is_? functions do... What&#039;s the return for ....</description>
		<content:encoded><![CDATA[<p>Can you please explain the keys class, I don&#8217;t really undestand what the is_? functions do&#8230; What&#8217;s the return for &#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.007 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 13:38:20 -->
